Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
feat: browser extension (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
rofe committed Aug 8, 2021
1 parent 27c4b40 commit 8e68335
Show file tree
Hide file tree
Showing 22 changed files with 1,536 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,25 @@
module.exports = {
root: true,
extends: '@adobe/helix',
parser: '@babel/eslint-parser',
parserOptions: {
allowImportExportEverywhere: true,
sourceType: 'module',
requireConfigFile: false,
},
globals: {
window: true,
document: true,
fetch: true,
browser: true,
navigator: true,
jsyaml: true,
},
rules: {
// allow reassigning param
'no-param-reassign': [2, { props: false }],
'import/extensions': ['error', {
js: 'always',
}],
},
};
52 changes: 50 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"homepage": "https://github.com/adobe/helix-sidekick#readme",
"devDependencies": {
"@adobe/eslint-config-helix": "1.1.5",
"@babel/eslint-parser": "7.14.7",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/git": "9.0.0",
"ajv": "8.6.1",
Expand Down
98 changes: 98 additions & 0 deletions src/extension/_locales/de/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"description": {
"message": "Benutze den Helix Sidekick in mehreren Helix-Projekten und über mehrere Browserfenster hinweg."
},
"description_shortcut": {
"message": "Helix Sidekick ein-/ausschalten"
},
"title": {
"message": "Helix Sidekick (ein-/ausschalten mit Ctrl+Shift+H)"
},
"save": {
"message": "Speichern"
},
"cancel": {
"message": "Abbrechen"
},
"add": {
"message": "Hinzufügen"
},
"config_projects": {
"message": "Projekte"
},
"config_project_empty": {
"message": "Du hast noch keine Projekte hinzugefügt."
},
"config_project_exists": {
"message": "Es existiert bereits eine Konfiguration für dieses Projekt!"
},
"config_project_host": {
"message": "Produktion"
},
"config_project_innerhost": {
"message": "Vorschau"
},
"config_project_mountpoints": {
"message": "Inhalt"
},
"config_project_pick": {
"message": "Wähle ein Projekt aus:"
},
"config_shareurl_title": {
"message": "Mit Teilen-URL hinzufügen"
},
"config_shareurl_description": {
"message": "Frage jemanden, der schon einen Sidekick hat, dessen URL durch Klicken auf das Teilen-Symbol mit dir zu teilen."
},
"config_shareurl_placeholder": {
"message": "Teilen-URL: https://www.hlx.page/tools/sidekick/..."
},
"config_shareurl_share_title": {
"message": "Helix Sidekick-Konfiguration für $1"
},
"config_shareurl_copied": {
"message": "Teilen-URL für $1 in die Zwischenablage kopiert"
},
"config_manual_title": {
"message": "Manuell hinzufügen"
},
"config_manual_giturl_placeholder": {
"message": "Repository-URL: https://github.com/..."
},
"config_manual_host_placeholder": {
"message": "Produktions-Hostname (optional)"
},
"config_manual_project_placeholder": {
"message": "Projektname (optional)"
},
"config_share": {
"message": "Teilen"
},
"config_edit": {
"message": "Bearbeiten"
},
"config_delete": {
"message": "Löschen"
},
"config_delete_confirm": {
"message": "Möchtest du dieses Projekt wirklich löschen?"
},
"config_invalid_shareurl": {
"message": "Ungültige Teilen-URL"
},
"config_invalid_giturl": {
"message": "Ungültige Repository-URL"
},
"config_reset": {
"message": "Zurücksetzen"
},
"config_delete_all": {
"message": "Alle Einstellungen löschen"
},
"config_delete_all_description": {
"message": "Achtung: Diese Aktion kann nicht rückgängig gemacht werden!"
},
"config_delete_all_confirm": {
"message": "Möchtest du wirklich alle Einstellungen löschen?"
}
}
98 changes: 98 additions & 0 deletions src/extension/_locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"description": {
"message": "Use Helix Sidekick on multiple Helix projects and across multiple browser windows."
},
"description_shortcut": {
"message": "Toggles Helix Sidekick"
},
"title": {
"message": "Helix Sidekick"
},
"save": {
"message": "Save"
},
"cancel": {
"message": "Cancel"
},
"add": {
"message": "Add"
},
"config_projects": {
"message": "Projects"
},
"config_project_empty": {
"message": "You haven't added any projects yet."
},
"config_project_exists": {
"message": "A configuration for this project already exists!"
},
"config_project_host": {
"message": "Production"
},
"config_project_innerhost": {
"message": "Preview"
},
"config_project_mountpoints": {
"message": "Content"
},
"config_project_pick": {
"message": "Pick a project:"
},
"config_shareurl_title": {
"message": "Add via sharing URL"
},
"config_shareurl_description": {
"message": "Ask someone who already has a Sidekick to share its URL with you by clicking the sharing icon."
},
"config_shareurl_placeholder": {
"message": "Sharing URL: https://www.hlx.page/tools/sidekick/..."
},
"config_shareurl_share_title": {
"message": "Helix Sidekick configuration for $1"
},
"config_shareurl_copied": {
"message": "Sharing URL for $1 copied to clipboard"
},
"config_manual_title": {
"message": "Add manually"
},
"config_manual_giturl_placeholder": {
"message": "Repository URL: https://github.com/..."
},
"config_manual_host_placeholder": {
"message": "Production Hostname (optional)"
},
"config_manual_project_placeholder": {
"message": "Project Name (optional)"
},
"config_share": {
"message": "Share"
},
"config_edit": {
"message": "Edit"
},
"config_delete": {
"message": "Delete"
},
"config_delete_confirm": {
"message": "Do you really want to delete this project?"
},
"config_invalid_shareurl": {
"message": "Invalid sharing URL"
},
"config_invalid_giturl": {
"message": "Invalid repository URL"
},
"config_reset": {
"message": "Reset"
},
"config_delete_all": {
"message": "Delete all settings"
},
"config_delete_all_description": {
"message": "Caution: This action cannot be undone!"
},
"config_delete_all_confirm": {
"message": "Do you really want to delete all settings?"
}
}
7 changes: 7 additions & 0 deletions src/extension/background.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<head>
<script src="./lib/browser-polyfill.min.js"></script>
<script type="module" src="./background.js"></script>
</head>
<body></body>
</html>
Loading

0 comments on commit 8e68335

Please sign in to comment.