diff --git a/.github/AUTHORS.txt b/.github/AUTHORS.txt index e07ecfb1..3a0eab4e 100644 --- a/.github/AUTHORS.txt +++ b/.github/AUTHORS.txt @@ -1,37 +1,41 @@ Alicia - 1 commits -BOZG - 1 commits Begin - 1 commits David - 1 commits DeepSource - 1 commits Devin - 1 commits FormatToday <616099456@qq.com> - 1 commits Iaroslav - 1 commits +Kieren - 1 commits Rune - 1 commits Ryan - 1 commits Shreya - 1 commits +Xert - 1 commits deepsource-io[bot] - 1 commits jnach <33467747+jnach@users.noreply.github.com> - 1 commits +BOZG - 2 commits Brendan <'Lear> - 2 commits Dan - 2 commits liss-bot <87835202+liss-bot@users.noreply.github.com> - 2 commits ᗪєνιη <υн> - 2 commits Walkx <71191962+walkxcode@users.noreply.github.com> - 3 commits Niklas - 4 commits +Alicie - 5 commits UrekD - 5 commits Erik - 6 commits +Leonardo - 6 commits liss-bot - 6 commits Kashif - 9 commits -Alicia - 10 commits +Alicia - 16 commits github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - 16 commits -repo-visualizer - 17 commits snyk-bot - 18 commits -snyk-bot - 20 commits +repo-visualizer - 20 commits EVOTk <45015615+EVOTk@users.noreply.github.com> - 22 commits -Alicia - 23 commits +snyk-bot - 24 commits Alicia - 28 commits -Alicia - 34 commits -liss-bot - 46 commits +Alicia - 39 commits +liss-bot - 54 commits +Alicia - 60 commits Lissy93 - 78 commits Lissy93 - 202 commits -Alicia - 304 commits -Alicia - 1249 commits \ No newline at end of file +Alicia - 314 commits +Alicia - 1270 commits \ No newline at end of file diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 92a452b5..b44873c5 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 🐛 1.9.7 - Minor UI Editor Bug fixes [PR #416](https://github.com/Lissy93/dashy/pull/416) +- Fixes unable to edit item bug (#415) +- Fixes unable to add new app bug (#390) +- Fixes nav links visibility (#389) + ## ⚡️ 1.9.6 - Adds Proxy Support for Widget Requests [PR #392](https://github.com/Lissy93/dashy/pull/392) - Refactors widget mixin to include data requests, so that code can be shared between widgets - Adds a Node endpoint for proxying requests server-side, used for APIs that are not CORS enabled diff --git a/README.md b/README.md index e1629d1d..539bde4a 100644 --- a/README.md +++ b/README.md @@ -328,7 +328,7 @@ For apps that you use regularly, you can set a custom keybinding. Use the `hotke You can also add custom tags to a given item to make finding them based on keywords easier. For example, in the following example, searching for 'Movies' will show 'Plex' -"`yaml +```yaml items: - title: Plex hotkey: 8 @@ -501,6 +501,20 @@ Huge thanks to the sponsors helping to support Dashy's development!
Vlad Timofeev + + + + KierenConnell +
+ Kieren Connell +
+ + + + ratty222 +
+ Ratty222 +
diff --git a/docs/assets/CONTRIBUTORS.svg b/docs/assets/CONTRIBUTORS.svg index ad833b9c..ac62e770 100644 --- a/docs/assets/CONTRIBUTORS.svg +++ b/docs/assets/CONTRIBUTORS.svg @@ -21,11 +21,11 @@ - - - - + + + + @@ -39,16 +39,22 @@ + + + - + - + - + + + + - + \ No newline at end of file diff --git a/docs/assets/repo-visualization.svg b/docs/assets/repo-visualization.svg index ce661632..236615b7 100644 --- a/docs/assets/repo-visualization.svg +++ b/docs/assets/repo-visualization.svg @@ -1 +1 @@ -viewsviewsutilsutilsstylesstylescomponentscomponentsassetsassetsWorkspaceWorkspaceSettingsSettingsPageStrcturePageStrctureMinimalViewMinimalViewLinkItemsLinkItemsInteractiveEditorInteractiveEditorFormElementsFormElementsConfigurationConfigurationlocaleslocalesinterface-iconsinterface-iconsHome.vueHome.vueHome.vueLogin.vueLogin.vueLogin.vueemojis.jsonemojis.jsonemojis.jsonConfigSch...ConfigSch...ConfigSch...color-the...color-the...color-the...CustomTh...CustomTh...CustomTh...Item.vueItem.vueItem.vueSection.vueSection.vueSection.vueItemIcon...ItemIcon...ItemIcon...EditItem...EditItem...EditItem...JsonEdit...JsonEdit...JsonEdit...ConfigCo...ConfigCo...ConfigCo...hi.jsonhi.jsonhi.jsonfr.jsonfr.jsonfr.jsonsv.jsonsv.jsonsv.jsonru.jsonru.jsonru.jsonsl.jsonsl.jsonsl.jsonen.jsonen.jsonen.json.js.json.scss.svg.vueeach dot sized by file size \ No newline at end of file +viewsviewsutilsutilsstylesstylesmixinsmixinscomponentscomponentsassetsassetsWorkspaceWorkspaceWidgetsWidgetsSettingsSettingsPageStrcturePageStrctureMinimalViewMinimalViewLinkItemsLinkItemsInteractiveEditorInteractiveEditorFormElementsFormElementsConfigurationConfigurationlocaleslocalesinterface-iconsinterface-iconsemojis.jsonemojis.jsonemojis.jsonConfigSc...ConfigSc...ConfigSc...color-th...color-th...color-th...WidgetBa...WidgetBa...WidgetBa...Item.vueItem.vueItem.vuehi.jsonhi.jsonhi.jsonfr.jsonfr.jsonfr.json.js.json.scss.svg.vueeach dot sized by file size \ No newline at end of file diff --git a/docs/authentication.md b/docs/authentication.md index e5de308c..b429adea 100644 --- a/docs/authentication.md +++ b/docs/authentication.md @@ -143,9 +143,25 @@ appConfig: realm: 'alicia-homelab' clientId: 'dashy' ``` + +### 4. Add groups and roles (Optional) +Keycloak allows you to assign users roles and groups. You can use these values to configure who can access various sections in Dashy. +Keycloak server administration and configuration is a deep topic; please refer to the [server admin guide](https://www.keycloak.org/docs/latest/server_admin/index.html#assigning-permissions-and-access-using-roles-and-groups) to see details about creating and assigning roles and groups. +Once you have groups or roles assigned to users you can configure access under each sections `displayData.showForKeycloakUser` and `displayData.hideForKeycloakUser`. +Both show and hide configurations accept a list of `groups` and `roles` that limit access. If a users data matches one or more items in these lists they will be allowed or excluded as defined. +```yaml +sections: + - name: DeveloperResources + displayData: + showForKeycloakUsers: + roles: ['canViewDevResources'] + hideForKeycloakUsers: + groups: ['ProductTeam'] +``` + Your app is now secured :) When you load Dashy, it will redirect to your Keycloak login page, and any user without valid credentials will be prevented from accessing your dashboard. -From within the Keycloak console, you can then configure things like user permissions, time outs, password policies, access, etc. You can also backup your full Keycloak config, and it is recommended to do this, along with your Dashy config. You can spin up both Dashy and Keycloak simultaneously and restore both applications configs using a `docker-compose.yml` file, and this is recommended. +From within the Keycloak console, you can then configure things like time-outs, password policies, etc. You can also backup your full Keycloak config, and it is recommended to do this, along with your Dashy config. You can spin up both Dashy and Keycloak simultaneously and restore both applications configs using a `docker-compose.yml` file, and this is recommended. --- diff --git a/docs/configuring.md b/docs/configuring.md index bd975fda..b50a105a 100644 --- a/docs/configuring.md +++ b/docs/configuring.md @@ -77,7 +77,7 @@ Tips: --- | --- | --- | --- **`language`** | `string` | _Optional_ | The 2 (or 4-digit) [ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for your language, e.g. `en` or `en-GB`. This must be a language that the app has already been [translated](https://github.com/Lissy93/dashy/tree/master/src/assets/locales) into. If your language is unavailable, Dashy will fallback to English. By default Dashy will attempt to auto-detect your language, although this may not work on some privacy browsers. **`startingView`** | `enum` | _Optional_ | Which page to load by default, and on the base page or domain root. You can still switch to different views from within the UI. Can be either `default`, `minimal` or `workspace`. Defaults to `default` -**`defaultOpeningMethod`** | `enum` | _Optional_ | The default opening method for items, if no `target` is specified for a given item. Can be either `newtab`, `sametab`, `top`, `parent`, `modal` or `workspace`. Defaults to `newtab` +**`defaultOpeningMethod`** | `enum` | _Optional_ | The default opening method for items, if no `target` is specified for a given item. Can be either `newtab`, `sametab`, `modal`, `workspace`, `clipboard`, `top` or `parent`. Defaults to `newtab` **`statusCheck`** | `boolean` | _Optional_ | When set to `true`, Dashy will ping each of your services and display their status as a dot next to each item. This can be overridden by setting `statusCheck` under each item. Defaults to `false` **`statusCheckInterval`** | `boolean` | _Optional_ | The number of seconds between checks. If set to `0` then service will only be checked on initial page load, which is usually the desired functionality. If value is less than `10` you may experience a hit in performance. Defaults to `0` **`webSearch`** | `object` | _Optional_ | Configuration options for the web search feature, set your default search engine, opening method or disable web search. See [`webSearch`](#appconfigwebsearch-optional) @@ -186,7 +186,7 @@ For more info, see the **[Authentication Docs](/docs/authentication.md)** **`description`** | `string` | _Optional_ | Additional info about an item, which is shown in the tooltip on hover, or visible on large tiles **`url`** | `string` | Required | The URL / location of web address for when the item is clicked **`icon`** | `string` | _Optional_ | The icon for a given item. Can be a font-awesome icon, favicon, remote URL or local URL. See [`item.icon`](#sectionicon-and-sectionitemicon) -**`target`** | `string` | _Optional_ | The opening method for when the item is clicked, either `newtab`, `sametab`, `top`, `parent`, `modal` or `workspace`. Where `newtab` will open the link in a new tab, `sametab` will open it in the current tab, and `modal` will open a pop-up modal and `workspace` will open in the Workspace view. Defaults to `newtab` +**`target`** | `string` | _Optional_ | The opening method for when the item is clicked, either `newtab`, `sametab`, `modal`, `workspace`, `clipboard`, `top` or `parent`. Where `newtab` will open the link in a new tab, `sametab` will open it in the current tab, and `modal` will open a pop-up modal, `workspace` will open in the Workspace view and `clipboard` will copy the URL to system clipboard (but not launch app). Defaults to `newtab` **`hotkey`** | `number` | _Optional_ | Give frequently opened applications a numeric hotkey, between `0 - 9`. You can then just press that key to launch that application. **`tags`** | `string[]` | _Optional_ | A list of tags, which can be used for improved search **`statusCheck`** | `boolean` | _Optional_ | When set to `true`, Dashy will ping the URL associated with the current service, and display its status as a dot next to the item. The value here will override `appConfig.statusCheck` so you can turn off or on checks for a given service. Defaults to `appConfig.statusCheck`, falls back to `false` @@ -228,6 +228,8 @@ For more info, see the **[Authentication Docs](/docs/authentication.md)** **`hideForUsers`** | `string[]` | _Optional_ | Current section will be visible to all users, except for those specified in this list **`showForUsers`** | `string[]` | _Optional_ | Current section will be hidden from all users, except for those specified in this list **`hideForGuests`** | `boolean` | _Optional_ | Current section will be visible for logged in users, but not for guests (see `appConfig.enableGuestAccess`). Defaults to `false` +**`hideForKeycloakUsers`** | `object` | _Optional_ | Current section will be visible to all keycloak users, except for those configured via these groups and roles. See `hideForKeycloakUsers` +**`showForKeycloakUsers`** | `object` | _Optional_ | Current section will be hidden from all keyclaok users, except for those configured via these groups and roles. See `showForKeycloakUsers` **[⬆️ Back to Top](#configuring)** @@ -239,6 +241,15 @@ For more info, see the **[Authentication Docs](/docs/authentication.md)** **[⬆️ Back to Top](#configuring)** +### `section.displayData.hideForKeycloakUsers` and `section.displayData.showForKeycloakUsers` + +**Field** | **Type** | **Required**| **Description** +--- |------------| --- | --- +**`groups`** | `string[]` | _Optional_ | Current Section will be hidden or shown based on the user having any of the groups in this list +**`roles`** | `string[]` | _Optional_ | Current Section will be hidden or shown based on the user having any of the roles in this list + +**[⬆️ Back to Top](#configuring)** + --- ## Notes diff --git a/docs/credits.md b/docs/credits.md index d3060f52..b6a0459e 100644 --- a/docs/credits.md +++ b/docs/credits.md @@ -24,6 +24,20 @@
Vlad Timofeev + + + + KierenConnell +
+ Kieren Connell +
+ + + + ratty222 +
+ Ratty222 +
@@ -89,13 +103,6 @@ ᗪєνιη ᗷυнʟ - - - daentech -
- Dan Gilbert -
- BOZG @@ -103,6 +110,13 @@ Stephen Rigney + + + daentech +
+ Dan Gilbert +
+ BeginCI @@ -139,6 +153,13 @@ Iaroslav Dronskii + + + KierenConnell +
+ Kieren Connell +
+ rubjo @@ -152,15 +173,22 @@
Ryan Turner
- + + royshreyaaa
Shreya Roy
- - + + + + XertDev +
+ Xert +
+ jnach diff --git a/docs/deployment.md b/docs/deployment.md index 9f0508a9..83f76830 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -16,6 +16,8 @@ Once you've got Dashy up and running, you'll want to configure it with your own - [Deploy with Docker](#deploy-with-docker) - [Using Docker Compose](#using-docker-compose) +- [Unraid](#unraid) +- [Synology NAS](#synology-nas) - [Build from Source](#build-from-source) - [Hosting with CDN](#hosting-with-cdn) - [Run as executable](#run-as-executable) @@ -23,7 +25,9 @@ Once you've got Dashy up and running, you'll want to configure it with your own - [Deploy to cloud service](#deploy-to-cloud-service) - [Use managed instance](#use-managed-instance) -### Deploy with Docker +--- + +## Deploy with Docker **Container Info**: [ ![Docker Supported Architecture](https://img.shields.io/badge/Architectures-amd64%20|%20arm32v7%20|%20arm64v8-6ba6e5) @@ -66,7 +70,9 @@ If you're deploying Dashy on a modern ARM-based board, such as a Raspberry Pi (2 The image defaults to `:latest`, but you can instead specify a specific version, e.g. `docker pull lissy93/dashy:release-1.5.0` -### Using Docker Compose +--- + +## Using Docker Compose Using Docker Compose can be useful for saving your specific config in files, without having to type out a long run command each time. Save compose config as a YAML file, and then run `docker compose up -d` (optionally use the `-f` flag to specify file location, if it isn't located at `./docker-compose.yml`), `-d` is detached mode (not running in the foreground of your terminal). Compose is also useful if you are using clusters, as the format is very similar to stack files, used with Docker Swarm. @@ -106,7 +112,21 @@ You can use a different tag, by for example setting `image: lissy93/dashy:arm64v If you are building from source, and would like to use one of the [other Dockerfiles](https://github.com/Lissy93/dashy/tree/master/docker), then under `services.dashy` first set `context: .`, then specify the the path to the dockerfile, e.g. `dockerfile: ./docker/Dockerfile-arm32v7` -### Build from Source +--- + +## Unraid + +// TODO + +--- + +## Synology NAS + +// TODO + +--- + +## Build from Source If you do not want to use Docker, you can run Dashy directly on your host system. For this, you will need both [git](https://git-scm.com/downloads) and the latest or LTS version of [Node.js](https://nodejs.org/) installed, and optionally [yarn](https://yarnpkg.com/) @@ -116,6 +136,8 @@ If you do not want to use Docker, you can run Dashy directly on your host system 4. Build: `yarn build` 5. Run: `yarn start` +--- + ### Deploy to cloud service If you don't have a home server, then fear not - Dashy can be deployed to pretty much any cloud provider. The above Docker and NPM guides will work exactly the same on a VPS, but I've also setup some 1-Click deploy links for 10+ of the most common cloud providers, to make things easier. Note that if your instance is exposed to the internet, it will be your responsibility to adequately secure it. @@ -236,13 +258,16 @@ yarn build surge ./dist ``` +--- -### Hosting with CDN +## Hosting with CDN Once Dashy has been built, it is effectivley just a static web app. This means that it can be served up with pretty much any static host, CDN or web server. To host Dashy through a CDN, the steps are very similar to building from source: clone the project, cd into it, install dependencies, write your config file and build the app. Once build is complete you will have a `./dist` directory within Dashy's root, and this is the build application which is ready to be served up. However without Dashy's node server, there are a couple of features that will be unavailible to you, including: Writing config changes to disk through the UI, triggering a rebuild through the UI and application status checks. Everything else will work fine. +--- + ## Requirements diff --git a/docs/developing.md b/docs/developing.md index 6f8ac2b0..22672f1f 100644 --- a/docs/developing.md +++ b/docs/developing.md @@ -285,6 +285,7 @@ Styleguides: │ ├── InitServiceWorker.js # Initializes and manages service worker, if enabled │ ├── Search.js # Helper functions for searching/ filtering items in all views │ ├── JsonToYaml.js # Function that parses and converts raw JSON into valid YAML +│ ├── KeycloakAuth.js # Singleton class to manage Keycloak authentication │ ├── languages.js # Handles fetching, switching and validating languages │ ╰── ThemeHelper.js # Function that handles the fetching and setting of user themes ╰── views # Directory of available pages, corresponding to available routes diff --git a/docs/showcase.md b/docs/showcase.md index a5dd55fd..2baa9c0e 100644 --- a/docs/showcase.md +++ b/docs/showcase.md @@ -1,6 +1,6 @@ # *Dashy Showcase* 🌟 -| 💗 Do you use Dashy? Got a sweet dashboard? Submit it to the showcase! 👉 [See How](#submitting-your-dashboard) | +| 💗 Got a sweet dashboard? Submit it to the showcase! 👉 [See How](#submitting-your-dashboard) | |-| ### Home Lab 2.0 @@ -10,7 +10,7 @@ --- ### Ratty222 -> By [@ratty222](https://github.com/ratty222) ([#384](https://github.com/Lissy93/dashy/discussions/384)) +> By [@ratty222](https://github.com/ratty222) [#384](https://github.com/Lissy93/dashy/discussions/384) ![screenshot-ratty222-dashy](https://user-images.githubusercontent.com/1862727/147582551-4c655d37-8bcc-4f95-ab41-164a9d0d6a07.png) @@ -38,6 +38,14 @@ --- +### The Private Dashboard + +> By [@DylanBeMe](https://github.com/DylanBeMe) [#419](https://github.com/Lissy93/dashy/issues/419) + +![screenshot-evo-dashboard](https://i.ibb.co/hKS483T/private-dashboard-Dylan-Be-Me.png) + +--- + ### NAS Home Dashboard > By [@cerealconyogurt](https://github.com/cerealconyogurt) @@ -52,6 +60,8 @@ ![screenshot-dashy-live](https://raw.githubusercontent.com/Lissy93/dashy/master/docs/showcase/10-dashy-live.png) +--- + ### CFT Toolbox ![screenshot-cft-toolbox](https://raw.githubusercontent.com/Lissy93/dashy/master/docs/showcase/3-cft-toolbox.png) @@ -91,14 +101,21 @@ > Dashy, is the most complete dashboard I ever tried, has all the features, and it sets itself apart from the rest. It is my default homepage now. I am thankful to the developer @Lissy93 for sharing such a wonderful creation. -[![screenshot-12-skoogee-homelab-3](https://i.ibb.co/F5yBTsT/12-skoogee-homelab-3.png)](https://ibb.co/album/ynSwzm) +[![screenshot-12-skoogee-homelab-3](https://i.ibb.co/F5yBTsT/12-skoogee-homelab-3.png?)](https://ibb.co/album/ynSwzm) --- ### Ground Control > By [@dtctek](https://github.com/dtctek) -![screenshot-ground-control](https://raw.githubusercontent.com/Lissy93/dashy/master/docs/showcase/7-ground-control-dtctek.png) +![screenshot-ground-control](https://user-images.githubusercontent.com/1862727/149821995-e9b41dab-186c-42e6-b5b3-e233259b241d.png) + +--- + +### System Monitor +> An aggregated board for monitoring system resource usage from a single view + +![screenshot-monitor](https://i.ibb.co/xfK6BGb/system-monitor-board.png) --- @@ -138,10 +155,10 @@ If you're submitting a pull request, please use a format similar to this: > Submitted by [@username](https://github.com/user) (optional) -![dashboard-screenshot](/docs/showcase/screenshot-name.jpg) (required) - [An optional text description, or any interesting details] (optional) +![dashboard-screenshot](https://example.com/url-to-screenshot.png) (required) + --- ``` diff --git a/package.json b/package.json index 0a26e47c..3eae86ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Dashy", - "version": "1.9.6", + "version": "1.9.7", "license": "MIT", "main": "server", "author": "Alicia Sykes (https://aliciasykes.com)", @@ -96,4 +96,4 @@ "> 1%", "last 2 versions" ] -} +} \ No newline at end of file diff --git a/src/assets/interface-icons/open-clipboard.svg b/src/assets/interface-icons/open-clipboard.svg new file mode 100644 index 00000000..2f3bff6e --- /dev/null +++ b/src/assets/interface-icons/open-clipboard.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index 58eeaa3b..6f7e1cd6 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -185,10 +185,12 @@ "newtab": "New Tab", "modal": "Pop-Up Modal", "workspace": "Workspace View", + "clipboard": "Copy to Clipboard", "options-section-title": "Options", "edit-item": "Edit", "move-item": "Copy or Move", - "remove-item": "Remove" + "remove-item": "Remove", + "copied-toast": "URL has been copied to clipboard" }, "section": { "open-section": "Open Section", diff --git a/src/assets/locales/sv.json b/src/assets/locales/sv.json index 30b7b53c..32a782b3 100644 --- a/src/assets/locales/sv.json +++ b/src/assets/locales/sv.json @@ -1,248 +1,284 @@ { - "home": { - "no-results": "Inga sökresultat", - "no-data": "Ingen data konfigurerad" + "home":{ + "no-results":"Inga sökresultat", + "no-data":"Ingen data konfigurerad", + "no-items-section":"Inga objekt att visa än" + }, + "search":{ + "search-label":"Sök", + "search-placeholder":"Börja skriva för att filtrera", + "clear-search-tooltip":"Rensa sök", + "enter-to-search-web":"Tryck på Retur för att söka på webben" + }, + "login":{ + "title":"Dashy", + "username-label":"Användarnamn", + "password-label":"Lösenord", + "login-button":"Logga in", + "remember-me-label":"Kom ihåg mig", + "remember-me-never":"Aldrig", + "remember-me-hour":"4 Timmar", + "remember-me-day":"1 Dag", + "remember-me-week":"1 Vecka", + "remember-me-long-time":"Länge", + "error-missing-username":"Användarnamn saknas", + "error-missing-password":"Lösenord saknas", + "error-incorrect-username":"Användaren hittas inte", + "error-incorrect-password":"Fel lösenord", + "success-message":"Loggar in...", + "logout-message":"Utloggad", + "already-logged-in-title":"Redan inloggad", + "already-logged-in-text":"Du är inloggad som", + "proceed-to-dashboard":"Fortsätt till Dashboard", + "log-out-button":"Logga ut", + "proceed-guest-button":"Fortsätt som Gäst" + }, + "config":{ + "main-tab":"Huvudmeny", + "view-config-tab":"Visa konfiguration", + "edit-config-tab":"Redigera konfiguration", + "custom-css-tab":"Egna stilmallar", + "heading":"Konfigurationsalternativ", + "download-config-button":"Visa / Exportera konfiguration", + "edit-config-button":"Redigera konfiguration", + "edit-css-button":"Redigera Custom CSS", + "cloud-sync-button":"Aktivera molnsynk", + "edit-cloud-sync-button":"Redigera molnsynk", + "rebuild-app-button":"Återuppbygga appen", + "change-language-button":"Ändra appspråk", + "reset-settings-button":"Återställ lokala inställningar", + "app-info-button":"Appinfo", + "backup-note":"Det rekommenderas att du gör en säkerhetskopia av din konfiguration innan du gör ändringar.", + "reset-config-msg-l1":"Detta tar bort alla användarinställningar från lokal lagring, men påverkar inte din 'conf.yml'-fil", + "reset-config-msg-l2":"Du bör först göra en säkerhetskopia av alla ändringar du har gjort lokalt, om du vill använda dem i framtiden.", + "reset-config-msg-l3":"Är du säker på att du vill fortsätta?", + "data-cleared-msg":"Datarensning har lyckats", + "actions-label":"Åtgärder", + "copy-config-label":"Kopiera konfiguration", + "data-copied-msg":"Konfiguration har kopierats till urklipp", + "reset-config-label":"Återställ konfiguration", + "css-save-btn":"Spara ändringar", + "css-note-label":"Not", + "css-note-l1":"Du måste uppdatera sidan för att dina ändringar ska gälla.", + "css-note-l2":"Styles overrides lagras bara lokalt, så det rekommenderas att du gör en kopia av din CSS.", + "css-note-l3":"För att ta bort alla egna stilmallar, radera innehållet och tryck på Spara ändringar" + }, + "alternate-views":{ + "alternate-view-heading":"Ändra vy", + "default":"Standard", + "workspace":"Workspace", + "minimal":"Minimal" + }, + "settings":{ + "theme-label":"Tema", + "layout-label":"Layout", + "layout-auto":"Auto", + "layout-horizontal":"Vågrät", + "layout-vertical":"Lodrät", + "item-size-label":"Storlek", + "item-size-small":"Liten", + "item-size-medium":"Mellan", + "item-size-large":"Stor", + "config-launcher-label":"Konfig", + "config-launcher-tooltip":"Uppdatera konfiguration", + "sign-out-tooltip":"Logga ut", + "sign-in-tooltip":"Logga in", + "sign-in-welcome":"Hej {username}!" + }, + "updates":{ + "app-version-note":"Dashy-version", + "up-to-date":"Uppdaterat", + "out-of-date":"Uppdatering finns", + "unsupported-version-l1":"Du använder en icke-stödd version av Dashy", + "unsupported-version-l2":"För den bästa upplevelsen och de senaste säkerhetskorrigeringarna, uppdatera till" + }, + "language-switcher":{ + "title":"Ändra appspråk", + "dropdown-label":"Välj språk", + "save-button":"Spara", + "success-msg":"Språket har ändrats till" + }, + "theme-maker":{ + "title":"Temakonfigurator", + "export-button":"Exportera egendefinierade variabler", + "reset-button":"Återställ stilmallar för", + "show-all-button":"Vissa alla variabler", + "change-fonts-button":"Ändra typsnitt", + "save-button":"Spara", + "cancel-button":"Avbryt", + "saved-toast":"{theme} har uppdaterats", + "copied-toast":"Temadatan för {theme} har kopierats till urklipp", + "reset-toast":"Egna färger för {theme} har tagits bort" + }, + "config-editor":{ + "save-location-label":"Sparningsplats", + "location-local-label":"Tillämpa lokalt", + "location-disk-label":"Skriv ändringar till konfigurationsfil", + "save-button":"Spara ändringar", + "preview-button":"Förhandsgranska ändringar", + "valid-label":"Konfigurationen är giltig", + "status-success-msg":"Åtgärden slutförts", + "status-fail-msg":"Åtgärden misslyckats", + "success-msg-disk":"Konfigurationsfil har skrivits till disk utan problem", + "success-msg-local":"Lokala ändringar har sparats utan problem", + "success-note-l1":"Återskapa", + "success-note-l2":"Detta kan ta upp till en minut.", + "success-note-l3":"Du måste uppdatera sidan för att ändringar ska gälla", + "error-msg-save-mode":"Välj Lagringsläge: Lokalt eller Fil", + "error-msg-cannot-save":"Ett fel uppstod när konfigurationen skulle sparas", + "error-msg-bad-json":"Fel i JSON, möjligen felformaterat", + "warning-msg-validation":"Valideringsvarning", + "not-admin-note":"Du kan inte skriva ändringar till disk, eftersom du inte är inloggad som admin" + }, + "app-rebuild":{ + "title":"Återskapa appen", + "rebuild-note-l1":"Appen måste återskapas för att ändringar som skrivits till filen conf.yml ska gälla.", + "rebuild-note-l2":"Detta bör ske automatiskt, men om det inte har gjort det kan du aktivera det manuellt här.", + "rebuild-note-l3":"Detta krävs inte för ändringar som lagras lokalt.", + "rebuild-button":"Återskapa", + "rebuilding-status-1":"Återskapar...", + "rebuilding-status-2":"Detta kan ta några minuter", + "error-permission":"Du har inte behörighet att utföra denna åtgärd", + "success-msg":"Återskapning lyckats", + "fail-msg":"Återskapning misslyckats", + "reload-note":"En omladdning av sidan krävs nu för att ändringarna ska gälla", + "reload-button":"Ladda om sidan" + }, + "cloud-sync":{ + "title":"Molnsäkerhetskopiering och återställning", + "intro-l1":"Molnsäkerhetskopiering och återställning är en valfri funktion som gör att du kan ladda upp din konfiguration till internet och sedan återställa den på någon annan enhet eller instans av Dashy.", + "intro-l2":"All data är fullständigt end-to-end krypterad med AES, med ditt lösenord som nyckel.", + "intro-l3":"För mer information, vänligen se", + "backup-title-setup":"Gör en säkerhetskopia", + "backup-title-update":"Uppdatera säkerhetskopia", + "password-label-setup":"Välj lösenord", + "password-label-update":"Ange ditt lösenord", + "backup-button-setup":"Säkerhetskopiering", + "backup-button-update":"Uppdatera säkerhetskopia", + "backup-id-label":"Ditt säkerhetskopierings-ID", + "backup-id-note":"Detta används för att återställa från säkerhetskopior senare. Så förvara det tillsammans med ditt lösenord någonstans säkert.", + "restore-title":"Återställ en säkerhetskopia", + "restore-id-label":"Återställ ID", + "restore-password-label":"Lösenord", + "restore-button":"Återställ", + "backup-missing-password":"Lösenord saknas", + "backup-error-unknown":"Begäran kan inte behandlas", + "backup-error-password":"Fel lösenord. Vänligen ange ditt aktuella lösenord.", + "backup-success-msg":"Slutfört utan problem", + "restore-success-msg":"Konfigurationen har återställts utan problem" + }, + "menu":{ + "open-section-title":"Öppna i", + "sametab":"Denna flik", + "newtab":"Ny flik", + "modal":"Pop-Up Modal", + "workspace":"Workspace-vy", + "options-section-title":"Alternativ", + "edit-item":"Redigera", + "move-item":"Kopiera eller flytta", + "remove-item":"Ta bort" + }, + "context-menus":{ + "item":{ + "open-section-title":"Öppna i", + "sametab":"Denna flik", + "newtab":"Ny flik", + "modal":"Pop-Up Modal", + "workspace":"Workspace View", + "options-section-title":"Alternativ", + "edit-item":"Redigera", + "move-item":"Kopiera eller flytta", + "remove-item":"Ta bort" }, - "search": { - "search-label": "Sök", - "search-placeholder": "Börja skriva för att filtrera", - "clear-search-tooltip": "Rensa sök", - "enter-to-search-web": "Tryck på Retur för att söka på webben" - }, - "login": { - "title": "Dashy", - "username-label": "Användarnamn", - "password-label": "Lösenord", - "login-button": "Logga in", - "remember-me-label": "Kom ihåg mig", - "remember-me-never": "Aldrig", - "remember-me-hour": "4 Timmar", - "remember-me-day": "1 Dag", - "remember-me-week": "1 Vecka", - "remember-me-long-time": "Länge", - "error-missing-username": "Användarnamn saknas", - "error-missing-password": "Lösenord saknas", - "error-incorrect-username": "Användaren hittas inte", - "error-incorrect-password": "Fel lösenord", - "success-message": "Loggar in...", - "logout-message": "Utloggad", - "already-logged-in-title": "Redan inloggad", - "already-logged-in-text": "Du är inloggad som", - "proceed-to-dashboard": "Fortsätt till Dashboard", - "log-out-button": "Logga ut", - "proceed-guest-button": "Fortsätt som Gäst" - }, - "config": { - "main-tab": "Huvudmeny", - "view-config-tab": "Visa konfiguration", - "edit-config-tab": "Redigera konfiguration", - "custom-css-tab": "Egendefinierade stilmallar", - "heading": "Konfigurationsalternativ", - "download-config-button": "Visa / Exportera konfiguration", - "edit-config-button": "Redigera konfiguration", - "edit-css-button": "Redigera egendefinierad CSS", - "cloud-sync-button": "Aktivera molnsynkronisering", - "edit-cloud-sync-button": "Redigera molnsynkronisering", - "rebuild-app-button": "Återuppbygga appen", - "change-language-button": "Ändra appspråk", - "reset-settings-button": "Återställ lokala inställningar", - "app-info-button": "Appinfo", - "backup-note": "Det rekommenderas att du gör en säkerhetskopia av din konfiguration innan du gör ändringar.", - "reset-config-msg-l1": "Detta tar bort alla användarinställningar från lokal lagring, men påverkar inte din 'conf.yml'-fil", - "reset-config-msg-l2": "Du bör först göra en säkerhetskopia av alla ändringar du har gjort lokalt, om du vill använda dem i framtiden.", - "reset-config-msg-l3": "Är du säker på att du vill fortsätta?", - "data-cleared-msg": "Datarensning har lyckats", - "actions-label": "Åtgärder", - "copy-config-label": "Kopiera konfiguration", - "data-copied-msg": "Konfiguration har kopierats till urklipp", - "reset-config-label": "Återställ konfiguration", - "css-save-btn": "Spara ändringar", - "css-note-label": "Not", - "css-note-l1": "Du måste uppdatera sidan för att dina ändringar ska gälla.", - "css-note-l2": "Styles overrides lagras bara lokalt, så det rekommenderas att du gör en kopia av din CSS.", - "css-note-l3": "För att ta bort alla egendefinierade stilmallar, radera innehållet och tryck på Spara ändringar" - }, - "alternate-views": { - "alternate-view-heading": "Ändra vy", - "default": "Standard", - "workspace": "Workspace", - "minimal": "Minimal" - }, - "settings": { - "theme-label": "Tema", - "layout-label": "Layout", - "layout-auto": "Auto", - "layout-horizontal": "Vågrät", - "layout-vertical": "Lodrät", - "item-size-label": "Storlek", - "item-size-small": "Liten", - "item-size-medium": "Mellan", - "item-size-large": "Stor", - "config-launcher-label": "Konfig", - "config-launcher-tooltip": "Uppdatera konfiguration", - "sign-out-tooltip": "Logga ut", - "sign-in-tooltip": "Logga in", - "sign-in-welcome": "Hej {username}!" - }, - "updates": { - "app-version-note": "Dashy-version", - "up-to-date": "Uppdaterat", - "out-of-date": "Uppdatering finns", - "unsupported-version-l1": "Du använder en icke-stödd version av Dashy", - "unsupported-version-l2": "För den bästa upplevelsen och de senaste säkerhetskorrigeringarna, uppdatera till" - }, - "language-switcher": { - "title": "Ändra appspråk", - "dropdown-label": "Välj språk", - "save-button": "Spara", - "success-msg": "Språket har ändrats till" - }, - "theme-maker": { - "title": "Temakonfigurator", - "export-button": "Exportera egendefinierade variabler", - "reset-button": "Återställ stilmallar för", - "show-all-button": "Visa alla variabler", - "change-fonts-button": "Ändra typsnitt", - "save-button": "Spara", - "cancel-button": "Avbryt", - "saved-toast": "Uppdatering av {theme} har lyckats", - "copied-toast": "Temadatan för {theme} har kopierats till urklipp", - "reset-toast": "Egendefinierade färger för {theme} har tagits bort" - }, - "config-editor": { - "save-location-label": "Sparningsplats", - "location-local-label": "Tillämpa lokalt", - "location-disk-label": "Skriv ändringar till konfigurationsfil", - "save-button": "Spara ändringar", - "preview-button": "Förhandsgranska ändringar", - "valid-label": "Konfigurationen är giltig", - "status-success-msg": "Åtgärden slutförts", - "status-fail-msg": "Åtgärden misslyckats", - "success-msg-disk": "Konfigurationsfil har skrivits till disk utan problem", - "success-msg-local": "Lokala ändringar har sparats utan problem", - "success-note-l1": "Återskapa", - "success-note-l2": "Detta kan ta upp till en minut.", - "success-note-l3": "Du måste uppdatera sidan för att ändringar ska gälla", - "error-msg-save-mode": "Välj Lagringsläge: Lokalt eller Fil", - "error-msg-cannot-save": "Ett fel uppstod när konfigurationen skulle sparas", - "error-msg-bad-json": "Fel i JSON, möjligen felformaterat", - "warning-msg-validation": "Valideringsvarning", - "not-admin-note": "Du kan inte skriva ändringar till disk, eftersom du inte är inloggad som admin" - }, - "app-rebuild": { - "title": "Återskapa appen", - "rebuild-note-l1": "Appen måste återskapas för att ändringar som skrivits till filen conf.yml ska gälla.", - "rebuild-note-l2": "Detta bör ske automatiskt, men om det inte har gjort det kan du aktivera det manuellt här.", - "rebuild-note-l3": "Detta krävs inte för ändringar som lagras lokalt.", - "rebuild-button": "Återskapa", - "rebuilding-status-1": "Återskapar...", - "rebuilding-status-2": "Detta kan ta några minuter", - "error-permission": "Du har inte behörighet att utföra denna åtgärd", - "success-msg": "Återskapning lyckats", - "fail-msg": "Återskapning misslyckats", - "reload-note": "En omladdning av sidan krävs nu för att ändringarna ska gälla", - "reload-button": "Ladda om sidan" - }, - "cloud-sync": { - "title": "Molnsäkerhetskopiering och återställning", - "intro-l1": "Molnsäkerhetskopiering och återställning är en valfri funktion som gör att du kan ladda upp din konfiguration till internet och sedan återställa den på någon annan enhet eller instans av Dashy.", - "intro-l2": "All data är fullständigt end-to-end krypterad med AES, med ditt lösenord som nyckel.", - "intro-l3": "För mer information, vänligen se", - "backup-title-setup": "Gör en säkerhetskopia", - "backup-title-update": "Uppdatera säkerhetskopia", - "password-label-setup": "Välj lösenord", - "password-label-update": "Ange ditt lösenord", - "backup-button-setup": "Säkerhetskopiering", - "backup-button-update": "Uppdatera säkerhetskopia", - "backup-id-label": "Ditt säkerhetskopierings-ID", - "backup-id-note": "Detta används för att återställa från säkerhetskopior senare. Så förvara det tillsammans med ditt lösenord någonstans säkert.", - "restore-title": "Återställ en säkerhetskopia", - "restore-id-label": "Återställ ID", - "restore-password-label": "Lösenord", - "restore-button": "Återställ", - "backup-missing-password": "Lösenord saknas", - "backup-error-unknown": "Begäran kan inte behandlas", - "backup-error-password": "Fel lösenord. Vänligen ange ditt aktuella lösenord.", - "backup-success-msg": "Slutfört utan problem", - "restore-success-msg": "Konfigurationen har återställts utan problem" - }, - "menu": { - "open-section-title": "Öppna i", - "sametab": "Denna flik", - "newtab": "Ny flik", - "modal": "Pop-Up Modal", - "workspace": "Workspace-vy", - "options-section-title": "Alternativ", - "edit-item": "Redigera", - "move-item": "Kopiera eller flytta", - "remove-item": "Ta bort" - }, - "context-menus": { - "item": { - "open-section-title": "Öppna i", - "sametab": "Denna flik", - "newtab": "Ny flik", - "modal": "Pop-Up Modal", - "workspace": "Workspace View", - "options-section-title": "Alternativ", - "edit-item": "Redigera", - "move-item": "Kopiera eller flytta", - "remove-item": "Ta bort" - }, - "section": { - "open-section": "Öppna sektion", - "edit-section": "Redigera", - "move-section": "Flytta till", - "remove-section": "Ta bort" - } - }, - "interactive-editor": { - "menu": { - "start-editing-tooltip": "Öppna den interaktiva redigeraren", - "edit-site-data-subheading": "Redigera webbplatsinformation", - "edit-page-info-btn": "Redigera sidinformation", - "edit-page-info-tooltip": "Appnamn, beskrivning, navigeringslänkar, sidfotstext, etc", - "edit-app-config-btn": "Redigera appkonfiguration", - "edit-app-config-tooltip": "Övriga appkonfigurationsalternativ", - "config-save-methods-subheading": "Alternativ för konfigurationssparande", - "save-locally-btn": "Spara lokalt", - "save-locally-tooltip": "Spara konfigurationen lokalt, till webbläsarens lagring. Detta påverkar inte din konfigurationsfil, men ändringarna sparas bara på denna enhet", - "save-disk-btn": "Spara till disk", - "save-disk-tooltip": "Spara konfiguration to conf.yml-filen på disk. Detta kommer att säkerhetskopiera och sedan skriva över din befintliga konfiguration", - "export-config-btn": "Exportera konfiguration", - "export-config-tooltip": "Visa och exportera den nya konfigurationen, antingen till fil eller urklipp", - "cloud-backup-btn": "Säkerhetskopiera till molnet", - "cloud-backup-tooltip": "Spara krypterad säkerhetskopia av konfigurationen i molnet", - "edit-raw-config-btn": "Redigera raw-konfiguration", - "edit-raw-config-tooltip": "Visa och redigera raw-konfiguration via JSON-redigeraren", - "cancel-changes-btn": "Avbryt redigering", - "cancel-changes-tooltip": "Radera nuvarande ändringar och lämna Redigeringsläge. Detta kommer in påverka din sparade konfiguration.", - "edit-mode-name": "Redigeringsläge", - "edit-mode-subtitle": "Du är i Redigeringsläge", - "edit-mode-description": "Detta innebär att du kan göra ändringar i din konfiguration och förhandsgranska resultaten, men tills du sparar kommer inga av dina ändringar att bevaras.", - "save-stage-btn": "Spara", - "cancel-stage-btn": "Avbryt" - }, - "edit-section": { - "edit-section-title": "Redigera sektion", - "add-section-title": "Lägg till ny sektion", - "edit-tooltip": "Tryck för att redigera, eller högerklicka för fler alternativ", - "remove-confirm": "Är du säker på att du vill ta bort denna sektion? Denna åtgärd kan ångras senare." - }, - "edit-app-config": { - "warning-msg-title": "Fortsätt med försiktighet", - "warning-msg-l1": "Följande alternativ är för avancerade appkonfigurationer.", - "warning-msg-l2": "Om du är osäker på något av fälten, vänligen kolla", - "warning-msg-docs": "dokumentationen", - "warning-msg-l3": "för att undvika oavsiktliga konsekvenser." - }, - "export": { - "export-title": "Exportera konfiguration", - "copy-clipboard-btn": "Kopiera till urklipp", - "copy-clipboard-tooltip": "Kopiera alla appkonfigurationer till systemets urklipp i YAML-format", - "download-file-btn": "Ladda ned som fil", - "download-file-tooltip": "Ladda ner alla appkonfigurationer till din enhet som en YAML-fil", - "view-title": "Visa konfiguration" - } + "section":{ + "open-section":"Öppna sektion", + "edit-section":"Redigera", + "move-section":"Flytta till", + "remove-section":"Ta bort" } - } \ No newline at end of file + }, + "interactive-editor":{ + "menu":{ + "start-editing-tooltip":"Öppna den interaktiva redigeraren", + "edit-site-data-subheading":"Redigera webbplatsinformation", + "edit-page-info-btn":"Redigera sidinformation", + "edit-page-info-tooltip":"Appnamn, beskrivning, navigeringslänkar, sidfotstext, etc", + "edit-app-config-btn":"Redigera appkonfiguration", + "edit-app-config-tooltip":"Övriga appkonfigurationsalternativ", + "config-save-methods-subheading":"Alternativ för konfigurationssparande", + "save-locally-btn":"Spara lokalt", + "save-locally-tooltip":"Spara konfigurationen lokalt, till webbläsarens lagring. Detta påverkar inte din konfigurationsfil, men ändringarna sparas bara på denna enhet", + "save-disk-btn":"Spara till disk", + "save-disk-tooltip":"Spara konfiguration to conf.yml-filen på disk. Detta kommer att säkerhetskopiera och sedan skriva över din befintliga konfiguration", + "export-config-btn":"Exportera konfiguration", + "export-config-tooltip":"Visa och exportera den nya konfigurationen, antingen till fil eller urklipp", + "cloud-backup-btn":"Säkerhetskopiera till molnet", + "cloud-backup-tooltip":"Spara krypterad säkerhetskopia av konfigurationen i molnet", + "edit-raw-config-btn":"Redigera raw-konfiguration", + "edit-raw-config-tooltip":"Visa och redigera raw-konfiguration via JSON-redigeraren", + "cancel-changes-btn":"Avbryt redigering", + "cancel-changes-tooltip":"Radera nuvarande ändringar och lämna Redigeringsläge. Detta kommer in påverka din sparade konfiguration.", + "edit-mode-name":"Redigeringsläge", + "edit-mode-subtitle":"Du är i Redigeringsläge", + "edit-mode-description":"Detta innebär att du kan göra ändringar i din konfiguration och förhandsgranska resultaten, men tills du sparar kommer inga av dina ändringar att bevaras.", + "save-stage-btn":"Spara", + "cancel-stage-btn":"Avbryt" + }, + "edit-item":{ + "missing-title-err":"Objektet måste ha en titel" + }, + "edit-section":{ + "edit-section-title":"Redigera sektion", + "add-section-title":"Lägg till ny sektion", + "edit-tooltip":"Tryck för att redigera, eller högerklicka för fler alternativ", + "remove-confirm":"Är du säker på att du vill ta bort denna sektion? Denna åtgärd kan ångras senare." + }, + "edit-app-config":{ + "warning-msg-title":"Fortsätt med försiktighet", + "warning-msg-l1":"Följande alternativ är för avancerade appkonfigurationer.", + "warning-msg-l2":"Om du är osäker på något av fälten, vänligen kolla", + "warning-msg-docs":"dokumentationen", + "warning-msg-l3":"för att undvika oavsiktliga konsekvenser." + }, + "export":{ + "export-title":"Exportera konfiguration", + "copy-clipboard-btn":"Kopiera till urklipp", + "copy-clipboard-tooltip":"Kopiera alla appkonfigurationer till systemets urklipp i YAML-format", + "download-file-btn":"Ladda ned som fil", + "download-file-tooltip":"Ladda ner alla appkonfigurationer till din enhet som en YAML-fil", + "view-title":"Visa konfiguration" + } + }, + "widgets":{ + "general":{ + "loading":"Laddar...", + "show-more":"Visa mer info", + "show-less":"Visa mindre", + "open-link":"Läs mer" + }, + "pi-hole":{ + "status-heading":"Status" + }, + "stat-ping":{ + "up":"Online", + "down":"Offline" + }, + "net-data":{ + "cpu-chart-title":"CPU History", + "mem-chart-title":"Memory Usage", + "mem-breakdown-title":"Memory Breakdown", + "load-chart-title":"System Load" + }, + "system-info":{ + "uptime":"Uptime" + }, + "flight-data":{ + "arrivals":"Ankomster", + "departures":"Avgångar" + }, + "tfl-status":{ + "good-service-all":"Good Service på alla linjer", + "good-service-rest":"Good Service på alla övriga linjer" + } + } +} \ No newline at end of file diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue index 414706ef..024de6f2 100644 --- a/src/components/LinkItems/Item.vue +++ b/src/components/LinkItems/Item.vue @@ -141,7 +141,7 @@ export default { hyperLinkHref() { const nothing = '#'; if (this.isEditMode) return nothing; - const noAnchorNeeded = ['modal', 'workspace']; + const noAnchorNeeded = ['modal', 'workspace', 'clipboard']; return noAnchorNeeded.includes(this.accumulatedTarget) ? nothing : this.url; }, }, @@ -174,6 +174,9 @@ export default { this.$emit('triggerModal', this.url); } else if (this.accumulatedTarget === 'workspace') { router.push({ name: 'workspace', query: { url: this.url } }); + } else if (this.accumulatedTarget === 'clipboard') { + navigator.clipboard.writeText(this.url); + this.$toasted.show(this.$t('context-menus.item.copied-toast')); } else { this.$emit('itemClicked'); } @@ -226,6 +229,7 @@ export default { case 'top': return '"\\f102"'; case 'modal': return '"\\f2d0"'; case 'workspace': return '"\\f0b1"'; + case 'clipboard': return '"\\f0ea"'; default: return '"\\f054"'; } }, @@ -279,6 +283,10 @@ export default { case 'workspace': router.push({ name: 'workspace', query: { url } }); break; + case 'clipboard': + navigator.clipboard.writeText(url); + this.$toasted.show(this.$t('context-menus.item.copied-toast')); + break; default: window.open(url, '_blank'); } }, @@ -546,4 +554,7 @@ a.item.is-edit-mode { .disabled-link { pointer-events: none; } +.tooltip.item-description-tooltip { + z-index: 7; +} diff --git a/src/components/LinkItems/ItemContextMenu.vue b/src/components/LinkItems/ItemContextMenu.vue index 1d29a756..6fc9131f 100644 --- a/src/components/LinkItems/ItemContextMenu.vue +++ b/src/components/LinkItems/ItemContextMenu.vue @@ -23,6 +23,10 @@ {{ $t('context-menus.item.workspace') }} +
  • + + {{ $t('context-menus.item.clipboard') }} +