Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/config/.finnishwords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ hinnoittelulaskuri
hyväksy
hyväksyä
hyväksyäksesi
ikkunan
ilman
ja
jaa
Expand Down Expand Up @@ -338,6 +339,7 @@ ota
ottaneesi
ovat
oy
paikkaan
paina
painikkeella
painikkeesta
Expand Down Expand Up @@ -464,6 +466,7 @@ sivupyynnössä
sivutus
sopimus
sulje
suljet
suodata
suositellut
suuren
Expand Down Expand Up @@ -549,6 +552,7 @@ tunnus
tunti
tuo
tuottaa
turvalliseen
tyhjennä
tyhjä
tyyppi
Expand All @@ -557,6 +561,7 @@ tägejä
tägillä
tägit
tähän
tälle
tällä
tältä
tämä
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- (GH #989) Make selected Display Options consistent when browsing between pages
- (GH #944) Create new Taginput component to replace Buefy's taginput component
- (GL #944) Replace buefy upload button with a new component: `CUploadButton`
- (GL #940) Added TokenModal to replace token page

### Changed

Expand Down
49 changes: 27 additions & 22 deletions swift_browser_ui_frontend/src/common/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ let default_translations = {
complete: "Uploading completed",
cancelled: "Uploading cancelled",
},
close: "Close",
copy: " Copy",
copied: "Share ID copied to clipboard",
copy_failed: "Copying failed",
Expand Down Expand Up @@ -242,20 +243,21 @@ let default_translations = {
},
tokens: {
empty: "No API tokens created for the project",
identifier: "Identifier",
revoke: "Revoke",
identLabel: "New token identifier",
identMessage: "Insert new token identifier here",
title: "Create API-tokens",
identifier: "Token identifier",
identLabel: "Insert new token identifier",
createToken: "Create token",
latestToken: "Latest token: ",
copyToken:
"The token will be displayed just this once after its " +
"creation, and recovering it will not be possible " +
"afterwards. Please make sure that you have stored " +
"the token somewhere before navigating away from the " +
"token page.",
copy: "Copy token",
copyWarning:
"Token will be displayed just this once " +
"and recovering it is not be possible. " +
"Please store the token somewhere " +
"safe before closing this modal.",
tokenCopied: "Token copied.",
back: "Back to all folders",
tokenRemoved: "Token removed.",
inUse: "Token identifier already in use.",
creationFailed: "Token creation failed.",
},
encrypt: {
uploadFiles: "Upload files",
Expand Down Expand Up @@ -557,6 +559,7 @@ let default_translations = {
complete: "Lähetys on valmis",
cancelled: "Lähetys peruutettu",
},
close: "Sulje",
copy: " Kopioi",
copied: "Jakamistunnus kopioitu leikepöydälle.",
copy_failed: "Kopiointi epäonnistui.",
Expand Down Expand Up @@ -598,20 +601,22 @@ let default_translations = {
name_newFolder: "Nimeä uusi kansio",
},
tokens: {
empty: "Projektille ei ole luotu API-avaimia",
identifier: "Tunniste",
revoke: "Mitätöi",
identLabel: "Uuden avaimen tunniste",
identMessage: "Syötä tunniste uudelle API-avaimelle",
empty: "Tälle projektille ei ole luotu API-avaimia",
title: "Luo API-avaimet",
identifier: "Avainten tunnisteet",
identLabel: "Syötä tunniste uudelle API-avaimelle",
createToken: "Luo avain",
latestToken: "Viimeisin avain: ",
back: "Palaa päänäkymään",
copyToken:
"Avain näytetään vain kerran luonnin jälkeen, eikä sen " +
"kopiointi tai palautus jälkeenpäin ole mahdollista. " +
"Kopioi avain talteen ennen kuin " +
"poistut tältä sivulta.",
copy: "Kopioi avain",
copyWarning:
"Avain näytetään vain tämän kerran, " +
"eikä sen kopiointi tai palautus ole mahdollista jälkeenpäin. " +
"Tallenna avain turvalliseen paikkaan " +
"ennen kuin suljet tämän ikkunan.",
tokenCopied: "Avain kopioitu.",
tokenRemoved: "Avain poistettu.",
creationFailed: "Avaimen luonti epäonnistui.",
inUse: "Avaimen tunniste on jo käytössä.",
},
encrypt: {
uploadFiles: "Lataa tiedostoja",
Expand Down
6 changes: 0 additions & 6 deletions swift_browser_ui_frontend/src/common/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { createRouter, createWebHistory } from "vue-router";
import FoldersView from "@/views/Folders.vue";
import ObjectsView from "@/views/Objects.vue";
import SharedObjects from "@/views/SharedObjects.vue";
import TokensView from "@/views/Tokens.vue";

export default createRouter({
history: createWebHistory(),
Expand All @@ -12,11 +11,6 @@ export default createRouter({
name: "AllFolders",
component: FoldersView,
},
{
path: "/browse/:user/:project/tokens",
name: "TokensView",
component: TokensView,
},
{
path: "/browse/:user/:project/:container/shared/:owner",
name: "SharedObjects",
Expand Down
4 changes: 4 additions & 0 deletions swift_browser_ui_frontend/src/common/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const store = createStore({
selectedObjectName: "",
openCopyFolderModal: false,
openDeleteModal: false,
openTokenModal: false,
deletableObjects: [],
isFolderCopied: false,
sourceProjectId: "",
Expand Down Expand Up @@ -231,6 +232,9 @@ const store = createStore({
toggleDeleteModal(state, payload) {
state.openDeleteModal = payload;
},
toggleTokenModal(state, payload) {
state.openTokenModal = payload;
},
setDeletableObjects(state, payload) {
state.deletableObjects = payload;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,8 @@ export default {
href: this.$t("message.supportMenu.itemLink2"),
},
{
title: this.$t("message.supportMenu.item3"),
route: {name: "TokensView", params: {
user: this.uname,
project: this.active.id}},
title: this.$t("message.supportMenu.sharing"),
action: () => this.$store.commit("toggleTokenModal", true),
},
{
title: this.$t("message.supportMenu.item4"),
Expand Down
Loading