diff --git a/js/src/components/Resource/FolderItem.vue b/js/src/components/Resource/FolderItem.vue index ecda49c88..e254c9224 100644 --- a/js/src/components/Resource/FolderItem.vue +++ b/js/src/components/Resource/FolderItem.vue @@ -29,7 +29,7 @@ class="actions" v-if="!inline" @delete="$emit('delete', resource.id)" - @move="$emit('move', resource.id)" + @move="$emit('move', resource)" @rename="$emit('rename', resource)" /> @@ -70,8 +70,6 @@ export default class FolderItem extends Mixins(ResourceMixin) { usernameWithDomain = usernameWithDomain; async onChange(evt: ChangeEvent): Promise { - console.log("into folder item"); - console.log(evt); if (evt.added && evt.added.element) { const movedResource = evt.added.element as IResource; const updatedResource = await this.moveResource(movedResource); diff --git a/js/src/components/Resource/ResourceItem.vue b/js/src/components/Resource/ResourceItem.vue index 4751e2a3b..c5865ed0d 100644 --- a/js/src/components/Resource/ResourceItem.vue +++ b/js/src/components/Resource/ResourceItem.vue @@ -29,7 +29,7 @@ class="actions" v-if="!inline" @delete="$emit('delete', resource.id)" - @move="$emit('move', resource.id)" + @move="$emit('move', resource)" @rename="$emit('rename', resource)" /> diff --git a/js/src/components/Resource/ResourceSelector.vue b/js/src/components/Resource/ResourceSelector.vue new file mode 100644 index 000000000..a16bb3be1 --- /dev/null +++ b/js/src/components/Resource/ResourceSelector.vue @@ -0,0 +1,129 @@ + + + diff --git a/js/src/graphql/resources.ts b/js/src/graphql/resources.ts index 65ea76422..5b1e90525 100644 --- a/js/src/graphql/resources.ts +++ b/js/src/graphql/resources.ts @@ -18,6 +18,7 @@ export const GET_RESOURCE = gql` summary url path + type metadata { ...ResourceMetadataBasicFields authorName @@ -28,6 +29,8 @@ export const GET_RESOURCE = gql` } parent { id + path + type } actor { id @@ -44,6 +47,11 @@ export const GET_RESOURCE = gql` type path resourceUrl + parent { + id + path + type + } metadata { ...ResourceMetadataBasicFields } @@ -112,7 +120,12 @@ export const UPDATE_RESOURCE = gql` summary url path + type resourceUrl + parent { + id + path + } } } `; diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 951400e12..0f8cad665 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -510,10 +510,7 @@ "Website": "Website", "Actor": "Actor", "Statut": "Statut", - "Conversations": "Conversations", "Text": "Text", - "New conversation": "New conversation", - "Create a new conversation": "Create a new conversation", "All group members and other eventual server admins will still be able to view this information.": "All group members and other eventual server admins will still be able to view this information.", "Upcoming events": "Upcoming events", "View all upcoming events": "View all upcoming events", @@ -525,7 +522,6 @@ "Post a public message": "Post a public message", "View all todos": "View all todos", "Discussions": "Discussions", - "View all conversations": "View all conversations", "No public upcoming events": "No public upcoming events", "Latest posts": "Latest posts", "Invite a new member": "Invite a new member", @@ -696,5 +692,16 @@ "Can be an email or a link, or just plain text.": "Can be an email or a link, or just plain text.", "No profiles found": "No profiles found", "URL copied to clipboard": "URL copied to clipboard", - "Report #{reportNumber}": "Report #{reportNumber}" + "Report #{reportNumber}": "Report #{reportNumber}", + "Move \"{resourceName}\"": "Move \"{resourceName}\"", + "Parent folder": "Parent folder", + "(this folder)": "(this folder)", + "(this link)": "(this link)", + "Move resource to {folder}": "Move resource to {folder}", + "Create a folder": "Create a folder", + "No resources in this folder": "No resources in this folder", + "New discussion": "New discussion", + "Create a discussion": "Create a discussion", + "Create the discussion": "Create the discussion", + "View all discussions": "View all discussions" } diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index fc20e2fc5..0c0a9965a 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -78,11 +78,9 @@ "Confirmed: Will happen": "Confirmé : aura lieu", "Contact": "Contact", "Continue editing": "Continuer la modification", - "Conversations": "Conversations", "Country": "Pays", "Create": "Créer", "Create a calc": "Créer un calc", - "Create a new conversation": "Créer une nouvelle conversation", "Create a new event": "Créer un nouvel évènement", "Create a new group": "Créer un nouveau groupe", "Create a new identity": "Créer une nouvelle identité", @@ -260,7 +258,6 @@ "My groups": "Mes groupes", "My identities": "Mes identités", "Name": "Nom", - "New conversation": "Nouvelle conversation", "New email": "Nouvelle adresse e-mail", "New folder": "Nouveau dossier", "New link": "Nouveau lien", @@ -478,7 +475,6 @@ "Username": "Pseudo", "Users": "Utilisateur⋅ice⋅s", "View a reply": "Aucune réponse | Voir une réponse | Voir {totalReplies} réponses", - "View all conversations": "Voir toutes les conversations", "View all resources": "Voir toutes les resources", "View all todos": "Voir tous les todos", "View all upcoming events": "Voir tous les événements à venir", @@ -696,5 +692,16 @@ "contact uninformed": "contact non renseigné", "Can be an email or a link, or just plain text.": "Peut être une adresse email ou bien un lien, ou alors du simple texte brut.", "URL copied to clipboard": "URL copiée dans le presse-papiers", - "Report #{reportNumber}": "Signalement #{reportNumber}" + "Report #{reportNumber}": "Signalement #{reportNumber}", + "Move \"{resourceName}\"": "Déplacer « {resourceName} »", + "Parent folder": "Dossier parent", + "(this folder)": "(ce dossier)", + "(this link)": "(ce lien)", + "Move resource to {folder}": "Déplacer la ressource dans {folder}", + "Create a folder": "Créer un dossier", + "No resources in this folder": "Aucune ressource dans ce dossier", + "New discussion": "Nouvelle discussion", + "Create a discussion": "Créer une discussion", + "Create the discussion": "Créer la discussion", + "View all discussions": "Voir toutes les discussions" } diff --git a/js/src/views/Conversations/Conversation.vue b/js/src/views/Conversations/Conversation.vue index fe7d6e55b..220cb5b10 100644 --- a/js/src/views/Conversations/Conversation.vue +++ b/js/src/views/Conversations/Conversation.vue @@ -20,7 +20,7 @@ name: RouteName.CONVERSATION_LIST, params: { preferredUsername: conversation.actor.preferredUsername }, }" - >{{ $t("Conversations") }}{{ $t("Discussions") }}
  • diff --git a/js/src/views/Conversations/ConversationsList.vue b/js/src/views/Conversations/ConversationsList.vue index c77a764d8..977c32022 100644 --- a/js/src/views/Conversations/ConversationsList.vue +++ b/js/src/views/Conversations/ConversationsList.vue @@ -20,7 +20,7 @@ name: RouteName.CONVERSATION_LIST, params: { preferredUsername: usernameWithDomain(group) }, }" - >{{ $t("Conversations") }}{{ $t("Discussions") }}
  • @@ -39,7 +39,7 @@ name: RouteName.CREATE_CONVERSATION, params: { preferredUsername: this.preferredUsername }, }" - >{{ $t("New conversation") }}{{ $t("New discussion") }} diff --git a/js/src/views/Conversations/Create.vue b/js/src/views/Conversations/Create.vue index 10cc9ad23..e16cdea19 100644 --- a/js/src/views/Conversations/Create.vue +++ b/js/src/views/Conversations/Create.vue @@ -1,6 +1,6 @@ diff --git a/js/src/views/Group/Group.vue b/js/src/views/Group/Group.vue index 311ffd262..281b3f8ff 100644 --- a/js/src/views/Group/Group.vue +++ b/js/src/views/Group/Group.vue @@ -133,7 +133,7 @@ name: RouteName.CONVERSATION_LIST, params: { preferredUsername: usernameWithDomain(group) }, }" - >{{ $t("View all conversations") }}{{ $t("View all discussions") }} diff --git a/js/src/views/Resources/ResourceFolder.vue b/js/src/views/Resources/ResourceFolder.vue index eea87b067..28888591e 100644 --- a/js/src/views/Resources/ResourceFolder.vue +++ b/js/src/views/Resources/ResourceFolder.vue @@ -66,7 +66,7 @@
    - +
    {{ @@ -85,7 +85,12 @@
    - +
    @@ -100,18 +105,22 @@ v-if="localResource.type !== 'folder'" @delete="deleteResource" @rename="handleRename" + @move="handleMove" />
    +
    +

    {{ $t("No resources in this folder") }}

    +
    + + +