@ndla/ui 13.2.1 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Article/Article.js +22 -3
- package/es/Article/ArticleFavoritesButton.js +38 -0
- package/es/Article/index.js +2 -1
- package/es/Breadcrumb/ActionBreadcrumb.js +57 -0
- package/es/Breadcrumb/index.js +1 -0
- package/es/Footer/FooterAuth.js +15 -22
- package/es/InfoBlock/InfoBlock.js +55 -0
- package/es/InfoBlock/index.js +1 -0
- package/es/LearningPaths/LearningPathMenu.js +3 -4
- package/es/Masthead/MastheadAuthModal.js +2 -2
- package/es/MyNdla/Navigation/VerticalNavigation.js +51 -0
- package/es/MyNdla/Navigation/index.js +2 -0
- package/es/MyNdla/Resource/Folder.js +86 -0
- package/{lib/MyNdla/ResourceDash/ResourcesView.d.ts → es/MyNdla/Resource/index.js} +2 -3
- package/es/MyNdla/index.js +3 -4
- package/es/Notion/ConceptNotion.js +2 -1
- package/es/Notion/FigureNotion.js +13 -9
- package/es/Notion/NotionVisualElement.js +3 -2
- package/es/Resource/BlockResource.js +73 -0
- package/es/Resource/ListResource.js +66 -0
- package/es/Resource/index.js +10 -0
- package/es/Resource/resourceComponents.js +97 -0
- package/es/ResourceGroup/ResourceGroup.js +7 -5
- package/es/ResourceGroup/ResourceItem.js +28 -30
- package/es/ResourceGroup/ResourceList.js +18 -6
- package/es/Search/ActiveFilters.js +6 -7
- package/es/Search/ContentTypeResult.js +6 -8
- package/es/SearchTypeResult/ActiveFilters.js +6 -10
- package/es/SearchTypeResult/SearchViewType.js +5 -5
- package/es/SnackBar/SnackBar.js +117 -0
- package/es/SnackBar/index.js +9 -0
- package/es/TagSelector/SuggestionInput.js +240 -0
- package/es/TagSelector/Suggestions.js +93 -0
- package/es/TagSelector/TagSelector.js +137 -0
- package/es/TagSelector/index.js +9 -0
- package/es/TopicIntroductionList/TopicIntroduction.js +2 -4
- package/es/TopicIntroductionList/TopicShortcutItem.js +1 -3
- package/es/TreeStructure/FolderItem.js +130 -0
- package/es/TreeStructure/FolderItems.js +123 -0
- package/es/TreeStructure/FolderNameInput.js +112 -0
- package/es/TreeStructure/TreeStructure.js +254 -0
- package/es/TreeStructure/TreeStructure.types.js +0 -0
- package/es/TreeStructure/TreeStructureWrapper.js +13 -0
- package/es/TreeStructure/helperFunctions.js +92 -0
- package/es/TreeStructure/index.js +9 -0
- package/es/TreeStructure/keyboardNavigation/keyboardNavigation.js +182 -0
- package/es/TreeStructure/keyboardNavigation/keyboardNavigation.types.js +0 -0
- package/es/User/AuthModal.js +15 -24
- package/es/User/UserInfo.js +70 -0
- package/es/User/apiTypes.js +0 -0
- package/es/User/index.js +2 -0
- package/es/User/parseUserObject.js +102 -0
- package/es/all.css +90 -0
- package/es/index.js +9 -3
- package/es/locale/messages-en.js +75 -8
- package/es/locale/messages-nb.js +74 -7
- package/es/locale/messages-nn.js +74 -7
- package/es/locale/messages-se.js +74 -7
- package/es/locale/messages-sma.js +74 -7
- package/lib/Article/Article.d.ts +3 -1
- package/lib/Article/Article.js +43 -23
- package/lib/Article/ArticleFavoritesButton.d.ts +15 -0
- package/lib/Article/ArticleFavoritesButton.js +56 -0
- package/lib/Article/index.d.ts +2 -1
- package/lib/Article/index.js +8 -0
- package/lib/Breadcrumb/ActionBreadcrumb.d.ts +16 -0
- package/lib/Breadcrumb/ActionBreadcrumb.js +72 -0
- package/lib/Breadcrumb/index.d.ts +1 -0
- package/lib/Breadcrumb/index.js +8 -0
- package/lib/Footer/FooterAuth.d.ts +1 -1
- package/lib/Footer/FooterAuth.js +17 -17
- package/lib/InfoBlock/InfoBlock.d.ts +8 -0
- package/lib/InfoBlock/InfoBlock.js +58 -0
- package/lib/InfoBlock/index.d.ts +1 -0
- package/lib/InfoBlock/index.js +13 -0
- package/lib/LearningPaths/LearningPathMenu.js +3 -4
- package/lib/Masthead/MastheadAuthModal.d.ts +3 -3
- package/lib/Masthead/MastheadAuthModal.js +3 -3
- package/lib/MyNdla/Navigation/VerticalNavigation.d.ts +10 -0
- package/lib/MyNdla/Navigation/VerticalNavigation.js +61 -0
- package/lib/MyNdla/Navigation/index.d.ts +2 -0
- package/lib/MyNdla/Navigation/index.js +15 -0
- package/lib/MyNdla/Resource/Folder.d.ts +20 -0
- package/lib/MyNdla/Resource/Folder.js +100 -0
- package/lib/MyNdla/Resource/index.d.ts +9 -0
- package/lib/MyNdla/Resource/index.js +15 -0
- package/lib/MyNdla/index.d.ts +3 -4
- package/lib/MyNdla/index.js +9 -11
- package/lib/Notion/ConceptNotion.js +2 -1
- package/lib/Notion/FigureNotion.d.ts +1 -1
- package/lib/Notion/FigureNotion.js +12 -8
- package/lib/Notion/NotionVisualElement.js +3 -2
- package/lib/Resource/BlockResource.d.ts +20 -0
- package/lib/Resource/BlockResource.js +84 -0
- package/lib/Resource/ListResource.d.ts +20 -0
- package/lib/Resource/ListResource.js +78 -0
- package/lib/Resource/index.d.ts +11 -0
- package/lib/Resource/index.js +29 -0
- package/lib/Resource/resourceComponents.d.ts +24 -0
- package/lib/Resource/resourceComponents.js +106 -0
- package/lib/ResourceGroup/ResourceGroup.d.ts +2 -1
- package/lib/ResourceGroup/ResourceGroup.js +7 -5
- package/lib/ResourceGroup/ResourceItem.d.ts +5 -1
- package/lib/ResourceGroup/ResourceItem.js +29 -30
- package/lib/ResourceGroup/ResourceList.d.ts +3 -1
- package/lib/ResourceGroup/ResourceList.js +18 -6
- package/lib/Search/ActiveFilters.js +6 -7
- package/lib/Search/ContentTypeResult.js +6 -8
- package/lib/SearchTypeResult/ActiveFilters.js +6 -10
- package/lib/SearchTypeResult/SearchViewType.js +5 -5
- package/lib/SnackBar/SnackBar.d.ts +23 -0
- package/lib/SnackBar/SnackBar.js +127 -0
- package/lib/SnackBar/index.d.ts +10 -0
- package/lib/SnackBar/index.js +15 -0
- package/lib/TagSelector/SuggestionInput.d.ts +19 -0
- package/lib/TagSelector/SuggestionInput.js +255 -0
- package/lib/TagSelector/Suggestions.d.ts +12 -0
- package/lib/TagSelector/Suggestions.js +96 -0
- package/lib/TagSelector/TagSelector.d.ts +16 -0
- package/lib/TagSelector/TagSelector.js +150 -0
- package/lib/TagSelector/index.d.ts +10 -0
- package/lib/TagSelector/index.js +19 -0
- package/lib/TopicIntroductionList/TopicIntroduction.js +2 -4
- package/lib/TopicIntroductionList/TopicShortcutItem.js +1 -3
- package/lib/TreeStructure/FolderItem.d.ts +27 -0
- package/lib/TreeStructure/FolderItem.js +140 -0
- package/lib/TreeStructure/FolderItems.d.ts +11 -0
- package/lib/TreeStructure/FolderItems.js +130 -0
- package/lib/TreeStructure/FolderNameInput.d.ts +15 -0
- package/lib/TreeStructure/FolderNameInput.js +125 -0
- package/lib/TreeStructure/TreeStructure.d.ts +12 -0
- package/lib/TreeStructure/TreeStructure.js +273 -0
- package/lib/TreeStructure/TreeStructure.types.d.ts +63 -0
- package/lib/TreeStructure/TreeStructure.types.js +1 -0
- package/lib/TreeStructure/TreeStructureWrapper.d.ts +12 -0
- package/lib/TreeStructure/TreeStructureWrapper.js +24 -0
- package/lib/TreeStructure/helperFunctions.d.ts +5 -0
- package/lib/TreeStructure/helperFunctions.js +103 -0
- package/lib/TreeStructure/index.d.ts +10 -0
- package/lib/TreeStructure/index.js +15 -0
- package/lib/TreeStructure/keyboardNavigation/keyboardNavigation.d.ts +11 -0
- package/lib/TreeStructure/keyboardNavigation/keyboardNavigation.js +186 -0
- package/lib/TreeStructure/keyboardNavigation/keyboardNavigation.types.d.ts +26 -0
- package/lib/TreeStructure/keyboardNavigation/keyboardNavigation.types.js +1 -0
- package/lib/User/AuthModal.d.ts +3 -3
- package/lib/User/AuthModal.js +16 -23
- package/lib/User/UserInfo.d.ts +13 -0
- package/lib/User/UserInfo.js +84 -0
- package/lib/User/apiTypes.d.ts +61 -0
- package/lib/User/apiTypes.js +1 -0
- package/lib/User/index.d.ts +4 -0
- package/lib/User/index.js +8 -0
- package/lib/User/parseUserObject.d.ts +32 -0
- package/lib/User/parseUserObject.js +105 -0
- package/lib/all.css +90 -0
- package/lib/index.d.ts +14 -3
- package/lib/index.js +76 -10
- package/lib/locale/messages-en.d.ts +67 -0
- package/lib/locale/messages-en.js +75 -8
- package/lib/locale/messages-nb.d.ts +67 -0
- package/lib/locale/messages-nb.js +74 -7
- package/lib/locale/messages-nn.d.ts +67 -0
- package/lib/locale/messages-nn.js +74 -7
- package/lib/locale/messages-se.d.ts +67 -0
- package/lib/locale/messages-se.js +74 -7
- package/lib/locale/messages-sma.d.ts +67 -0
- package/lib/locale/messages-sma.js +74 -7
- package/lib/types.d.ts +1 -1
- package/package.json +11 -11
- package/src/Article/Article.tsx +31 -0
- package/src/Article/ArticleFavoritesButton.tsx +40 -0
- package/src/Article/index.ts +2 -0
- package/src/Breadcrumb/ActionBreadcrumb.tsx +68 -0
- package/src/Breadcrumb/index.ts +2 -0
- package/src/Footer/FooterAuth.tsx +7 -9
- package/src/InfoBlock/InfoBlock.tsx +61 -0
- package/src/InfoBlock/index.ts +1 -0
- package/src/LearningPaths/LearningPathMenu.tsx +1 -1
- package/src/Masthead/MastheadAuthModal.tsx +4 -5
- package/src/MyNdla/Navigation/VerticalNavigation.tsx +93 -0
- package/src/MyNdla/Navigation/index.ts +2 -0
- package/src/MyNdla/Resource/Folder.tsx +143 -0
- package/src/MyNdla/Resource/index.ts +10 -0
- package/src/MyNdla/index.ts +3 -5
- package/src/Notion/ConceptNotion.tsx +1 -0
- package/src/Notion/FigureNotion.tsx +12 -5
- package/src/Notion/NotionVisualElement.tsx +1 -1
- package/src/Resource/BlockResource.tsx +101 -0
- package/src/Resource/ListResource.tsx +111 -0
- package/src/Resource/index.ts +12 -0
- package/src/Resource/resourceComponents.tsx +143 -0
- package/src/ResourceGroup/ResourceGroup.tsx +3 -0
- package/src/ResourceGroup/ResourceItem.tsx +20 -3
- package/src/ResourceGroup/ResourceList.tsx +16 -3
- package/src/Search/ActiveFilters.jsx +0 -1
- package/src/Search/ContentTypeResult.tsx +8 -9
- package/src/SearchTypeResult/ActiveFilters.tsx +1 -3
- package/src/SearchTypeResult/SearchViewType.tsx +1 -1
- package/src/SnackBar/SnackBar.tsx +183 -0
- package/src/SnackBar/index.ts +13 -0
- package/src/TagSelector/SuggestionInput.tsx +230 -0
- package/src/TagSelector/Suggestions.tsx +125 -0
- package/src/TagSelector/TagSelector.tsx +111 -0
- package/src/TagSelector/index.ts +13 -0
- package/src/TopicIntroductionList/TopicIntroduction.tsx +2 -2
- package/src/TopicIntroductionList/TopicShortcutItem.tsx +1 -5
- package/src/TreeStructure/FolderItem.tsx +160 -0
- package/src/TreeStructure/FolderItems.tsx +109 -0
- package/src/TreeStructure/FolderNameInput.tsx +109 -0
- package/src/TreeStructure/TreeStructure.tsx +184 -0
- package/src/TreeStructure/TreeStructure.types.ts +69 -0
- package/src/TreeStructure/TreeStructureWrapper.tsx +34 -0
- package/src/TreeStructure/helperFunctions.ts +52 -0
- package/src/TreeStructure/index.ts +11 -0
- package/src/TreeStructure/keyboardNavigation/keyboardNavigation.ts +161 -0
- package/src/TreeStructure/keyboardNavigation/keyboardNavigation.types.ts +28 -0
- package/src/User/AuthModal.tsx +5 -26
- package/src/User/UserInfo.tsx +80 -0
- package/src/User/__tests__/parseUserObject-test.ts +315 -0
- package/src/User/apiTypes.ts +74 -0
- package/src/User/index.ts +4 -0
- package/src/User/parseUserObject.ts +83 -0
- package/src/all.scss +2 -0
- package/src/index.ts +15 -4
- package/src/locale/messages-en.ts +69 -7
- package/src/locale/messages-nb.ts +68 -6
- package/src/locale/messages-nn.ts +68 -6
- package/src/locale/messages-se.ts +68 -6
- package/src/locale/messages-sma.ts +68 -6
- package/src/types.ts +1 -1
- package/es/MyNdla/ResourceDash/Breadcrumbs.js +0 -22
- package/es/MyNdla/ResourceDash/ResourceElement.js +0 -27
- package/es/MyNdla/ResourceDash/ResourcesView.js +0 -43
- package/es/MyNdla/ResourceDash/index.js +0 -4
- package/lib/MyNdla/ResourceDash/Breadcrumbs.d.ts +0 -15
- package/lib/MyNdla/ResourceDash/Breadcrumbs.js +0 -35
- package/lib/MyNdla/ResourceDash/ResourceElement.d.ts +0 -18
- package/lib/MyNdla/ResourceDash/ResourceElement.js +0 -38
- package/lib/MyNdla/ResourceDash/ResourcesView.js +0 -57
- package/lib/MyNdla/ResourceDash/index.d.ts +0 -4
- package/lib/MyNdla/ResourceDash/index.js +0 -31
- package/src/MyNdla/ResourceDash/Breadcrumbs.tsx +0 -31
- package/src/MyNdla/ResourceDash/ResourceElement.tsx +0 -50
- package/src/MyNdla/ResourceDash/ResourcesView.tsx +0 -42
- package/src/MyNdla/ResourceDash/index.ts +0 -5
|
@@ -14,6 +14,19 @@ export const { contentTypes, subjectCategories, subjectTypes } = constants;
|
|
|
14
14
|
const titleTemplate = ' - NDLA';
|
|
15
15
|
|
|
16
16
|
const messages = {
|
|
17
|
+
treeStructure: {
|
|
18
|
+
createFolder: 'Lag mappe',
|
|
19
|
+
newFolder: {
|
|
20
|
+
placeholder: 'Skriv navn på mappe',
|
|
21
|
+
defaultName: 'Ny mappe',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
tagSelector: {
|
|
25
|
+
placeholder: 'Tilknytt tag',
|
|
26
|
+
removeTag: 'Ta vekk tilknytning til {{name}}',
|
|
27
|
+
hideAllTags: 'Skjul alle tagger',
|
|
28
|
+
showAllTags: 'Vis alle tagger',
|
|
29
|
+
},
|
|
17
30
|
htmlTitles: {
|
|
18
31
|
titleTemplate,
|
|
19
32
|
welcomePage: `Forsiden${titleTemplate}`,
|
|
@@ -755,15 +768,15 @@ const messages = {
|
|
|
755
768
|
},
|
|
756
769
|
blogPosts: {
|
|
757
770
|
blog1: {
|
|
758
|
-
text: '
|
|
759
|
-
externalLink: 'https://blogg.ndla.no/2021/
|
|
771
|
+
text: 'Forslag til årsplaner fra NDLA',
|
|
772
|
+
externalLink: 'https://blogg.ndla.no/2021/08/forslag-til-arsplaner-hos-ndla/',
|
|
760
773
|
linkText: 'Fagblogg',
|
|
761
774
|
license: 'CC-BY-SA-4.0',
|
|
762
775
|
licenseAuthor: 'Vibeke Klungland',
|
|
763
776
|
},
|
|
764
777
|
blog2: {
|
|
765
|
-
text: '
|
|
766
|
-
externalLink: 'https://blogg.ndla.no/
|
|
778
|
+
text: 'Huskeliste for kontaktlærere',
|
|
779
|
+
externalLink: 'https://blogg.ndla.no/2019/08/huskeliste-for-kontaktlaerere/',
|
|
767
780
|
linkText: 'Fagblogg',
|
|
768
781
|
license: 'CC-BY-SA-4.0',
|
|
769
782
|
licenseAuthor: 'Tom Knudsen',
|
|
@@ -943,6 +956,15 @@ const messages = {
|
|
|
943
956
|
resource: {
|
|
944
957
|
accessDenied: 'Vi beklager, men denne ressursen er bare for lærere innlogget med Feide.',
|
|
945
958
|
},
|
|
959
|
+
primarySchool: 'Hovedskole',
|
|
960
|
+
name: 'Navn',
|
|
961
|
+
mail: 'E-post',
|
|
962
|
+
username: 'Brukernavn',
|
|
963
|
+
groupTypes: {
|
|
964
|
+
basic: 'Basisgruppe',
|
|
965
|
+
teaching: 'Undervisningsgruppe',
|
|
966
|
+
other: 'Andre grupper',
|
|
967
|
+
},
|
|
946
968
|
},
|
|
947
969
|
checkOutNewFeature: 'Sjekk ut ny funksjonalitet',
|
|
948
970
|
slateBlockMenu: {
|
|
@@ -954,15 +976,55 @@ const messages = {
|
|
|
954
976
|
close: 'Lukk faktaboks',
|
|
955
977
|
},
|
|
956
978
|
myNdla: {
|
|
957
|
-
resources: '
|
|
958
|
-
|
|
979
|
+
resources: '{{count}} ressurs',
|
|
980
|
+
resources_plural: '{{count}} ressurser',
|
|
981
|
+
folders: '{{count}} mappe',
|
|
982
|
+
folders_plural: '{{count}} mapper',
|
|
959
983
|
folder: 'Mappe',
|
|
960
984
|
myFolders: 'Mine mapper',
|
|
961
985
|
myTags: 'Mine tags',
|
|
962
986
|
newFolder: 'Ny mappe',
|
|
987
|
+
newFolderUnder: 'Lag ny mappe under {{folderName}}',
|
|
963
988
|
myAccount: 'Min konto',
|
|
964
989
|
favourites: 'Favoritter',
|
|
965
990
|
help: 'Hjelp',
|
|
991
|
+
more: 'Flere valg',
|
|
992
|
+
listView: 'Listevisning',
|
|
993
|
+
detailView: 'Detaljrik listevisning',
|
|
994
|
+
shortView: 'Kort visning',
|
|
995
|
+
myPage: {
|
|
996
|
+
myPage: 'Min side',
|
|
997
|
+
deleteAccount: 'Slett Min NDLA',
|
|
998
|
+
logout: 'Logg ut av Min NDLA',
|
|
999
|
+
welcome:
|
|
1000
|
+
'Velkommen til Min NDLA! Nå kan du lagre dine favorittressurser fra NDLA og organisere dem slik du ønsker i mapper og med tags.',
|
|
1001
|
+
read: { our: 'Les våre', ours: 'Les vår' },
|
|
1002
|
+
privacy: 'personvernerklæring her',
|
|
1003
|
+
questions: { question: 'Lurer du på noe?', ask: 'Spør oss i chatten' },
|
|
1004
|
+
wishToDelete: 'Ønsker du ikke ha brukerprofil hos oss lengre?',
|
|
1005
|
+
terms: 'vilkår for bruk',
|
|
1006
|
+
newFavourite: 'Nylig lagt til',
|
|
1007
|
+
feide: 'Dette henter vi om deg fra Feide',
|
|
1008
|
+
resource: {
|
|
1009
|
+
addToMyNdla: 'Legg i Min NDLA',
|
|
1010
|
+
addedToMyNdla: 'Lagt i Min NDLA',
|
|
1011
|
+
},
|
|
1012
|
+
storageInfo: {
|
|
1013
|
+
title: 'Slik lagrer du dine favorittressurser fra NDLA',
|
|
1014
|
+
text: 'Når du ønsker å lagre en ressurs, kan du gjøre dette ved å klikke på hjertet øverst til høyre på siden. Du vil da få mulighet til å lagre ressursen i en mappe.',
|
|
1015
|
+
},
|
|
1016
|
+
folderInfo: {
|
|
1017
|
+
title: 'Slik organiserer du dine favorittressurser i mapper',
|
|
1018
|
+
text: 'Du kommer til mappeoversikten din ved å klikke på mine mapper i menyen til venstre. Her kan du opprette nye mapper og undermapper. Du kan også opprette en ny mappe i dialogvinduet som kommer når du klikker på et hjerte i en ressurs.',
|
|
1019
|
+
},
|
|
1020
|
+
tagInfo: {
|
|
1021
|
+
title: 'Slik tagger du dine favorittressurser',
|
|
1022
|
+
text: 'Når du lagrer en ressurs får du mulighet til å tagge ressursen med et nøkkelord. Du kan senere bruke taggene til å finne tilbake til ressurser på tvers av mapper. Ved å velge mine tagger i venstremenyen får du oversikt over alle taggene du har brukt og du kan også her se hvilke ressurser som du har tagget med det bestemte nøkkelordet.',
|
|
1023
|
+
},
|
|
1024
|
+
},
|
|
1025
|
+
},
|
|
1026
|
+
snackbar: {
|
|
1027
|
+
close: 'Lukk melding',
|
|
966
1028
|
},
|
|
967
1029
|
labels: {
|
|
968
1030
|
category: 'Kategori',
|
|
@@ -14,6 +14,19 @@ export const { contentTypes, subjectCategories, subjectTypes } = constants;
|
|
|
14
14
|
const titleTemplate = ' - NDLA';
|
|
15
15
|
|
|
16
16
|
const messages = {
|
|
17
|
+
treeStructure: {
|
|
18
|
+
createFolder: 'Lag mappe',
|
|
19
|
+
newFolder: {
|
|
20
|
+
placeholder: 'Skriv navn på mappe',
|
|
21
|
+
defaultName: 'Ny mappe',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
tagSelector: {
|
|
25
|
+
placeholder: 'Tilknytt tag',
|
|
26
|
+
removeTag: 'Ta vekk tilknytninga til {{name}}',
|
|
27
|
+
hideAllTags: 'Skjul alle tagger',
|
|
28
|
+
showAllTags: 'Vis alle tagger',
|
|
29
|
+
},
|
|
17
30
|
htmlTitles: {
|
|
18
31
|
titleTemplate,
|
|
19
32
|
welcomePage: `Framsida${titleTemplate}`,
|
|
@@ -756,15 +769,15 @@ const messages = {
|
|
|
756
769
|
},
|
|
757
770
|
blogPosts: {
|
|
758
771
|
blog1: {
|
|
759
|
-
text: '
|
|
760
|
-
externalLink: 'https://blogg.ndla.no/2021/
|
|
772
|
+
text: 'Forslag til årsplaner fra NDLA',
|
|
773
|
+
externalLink: 'https://blogg.ndla.no/2021/08/forslag-til-arsplaner-hos-ndla/',
|
|
761
774
|
linkText: 'Fagblogg',
|
|
762
775
|
license: 'CC-BY-SA-4.0',
|
|
763
776
|
licenseAuthor: 'Vibeke Klungland',
|
|
764
777
|
},
|
|
765
778
|
blog2: {
|
|
766
|
-
text: '
|
|
767
|
-
externalLink: 'https://blogg.ndla.no/
|
|
779
|
+
text: 'Huskeliste for kontaktlærere',
|
|
780
|
+
externalLink: 'https://blogg.ndla.no/2019/08/huskeliste-for-kontaktlaerere/',
|
|
768
781
|
linkText: 'Fagblogg',
|
|
769
782
|
license: 'CC-BY-SA-4.0',
|
|
770
783
|
licenseAuthor: 'Tom Knudsen',
|
|
@@ -944,6 +957,15 @@ const messages = {
|
|
|
944
957
|
resource: {
|
|
945
958
|
accessDenied: 'Vi beklagar, men denne ressursen er berre for lærarar innlogga med Feide.',
|
|
946
959
|
},
|
|
960
|
+
primarySchool: 'Hovudskule',
|
|
961
|
+
name: 'Namn',
|
|
962
|
+
mail: 'E-post',
|
|
963
|
+
username: 'Brukarnamn',
|
|
964
|
+
groupTypes: {
|
|
965
|
+
basic: 'Basisgruppe',
|
|
966
|
+
teaching: 'Undervisningsgruppe',
|
|
967
|
+
other: 'Andre grupper',
|
|
968
|
+
},
|
|
947
969
|
},
|
|
948
970
|
checkOutNewFeature: 'Sjekk ut ny funksjonalitet',
|
|
949
971
|
slateBlockMenu: {
|
|
@@ -955,15 +977,55 @@ const messages = {
|
|
|
955
977
|
close: 'Lukk faktaboks',
|
|
956
978
|
},
|
|
957
979
|
myNdla: {
|
|
958
|
-
resources: '
|
|
959
|
-
|
|
980
|
+
resources: '{{count}} ressurs',
|
|
981
|
+
resources_plural: '{{count}} ressursar',
|
|
982
|
+
folders: '{{count}} mappe',
|
|
983
|
+
folders_plural: '{{count}} mapper',
|
|
960
984
|
folder: 'Mappe',
|
|
961
985
|
myFolders: 'Mine mapper',
|
|
962
986
|
myTags: 'Mine tags',
|
|
963
987
|
newFolder: 'Ny mappe',
|
|
988
|
+
newFolderUnder: 'Lag ny mappe under {{folderName}}',
|
|
964
989
|
myAccount: 'Min konto',
|
|
965
990
|
favourites: 'Favorittar',
|
|
966
991
|
help: 'Hjelp',
|
|
992
|
+
more: 'Fleire val',
|
|
993
|
+
listView: 'Listevisning',
|
|
994
|
+
detailView: 'Detaljrik listevisning',
|
|
995
|
+
shortView: 'Kort visning',
|
|
996
|
+
myPage: {
|
|
997
|
+
myPage: 'Min side',
|
|
998
|
+
deleteAccount: 'Slett Min NDLA',
|
|
999
|
+
logout: 'Logg ut av Min NDLA',
|
|
1000
|
+
welcome:
|
|
1001
|
+
'Velkommen til Min NDLA! Nå kan du lagre dine favorittressurser fra NDLA og organisere dem slik du ønsker i mapper og med tags.',
|
|
1002
|
+
read: { our: 'Les våre', ours: 'Les vår' },
|
|
1003
|
+
privacy: 'personvernerklæring her',
|
|
1004
|
+
questions: { question: 'Lurer du på noe?', ask: 'Spør oss i chatten' },
|
|
1005
|
+
wishToDelete: 'Ønsker du ikke ha brukerprofil hos oss lengre?',
|
|
1006
|
+
terms: 'vilkår for bruk',
|
|
1007
|
+
newFavourite: 'Nylig lagt til',
|
|
1008
|
+
feide: 'Dette henter vi om deg fra Feide',
|
|
1009
|
+
resource: {
|
|
1010
|
+
addToMyNdla: 'Legg i Min NDLA',
|
|
1011
|
+
addedToMyNdla: 'Lagt i Min NDLA',
|
|
1012
|
+
},
|
|
1013
|
+
storageInfo: {
|
|
1014
|
+
title: 'Slik lagrer du dine favorittressurser fra NDLA',
|
|
1015
|
+
text: 'Når du ønsker å lagre en ressurs, kan du gjøre dette ved å klikke på hjertet øverst til høyre på siden. Du vil da få mulighet til å lagre ressursen i en mappe.',
|
|
1016
|
+
},
|
|
1017
|
+
folderInfo: {
|
|
1018
|
+
title: 'Slik organiserer du dine favorittressurser i mapper',
|
|
1019
|
+
text: 'Du kommer til mappeoversikten din ved å klikke på mine mapper i menyen til venstre. Her kan du opprette nye mapper og undermapper. Du kan også opprette en ny mappe i dialogvinduet som kommer når du klikker på et hjerte i en ressurs.',
|
|
1020
|
+
},
|
|
1021
|
+
tagInfo: {
|
|
1022
|
+
title: 'Slik tagger du dine favorittressurser',
|
|
1023
|
+
text: 'Når du lagrer en ressurs får du mulighet til å tagge ressursen med et nøkkelord. Du kan senere bruke taggene til å finne tilbake til ressurser på tvers av mapper. Ved å velge mine tagger i venstremenyen får du oversikt over alle taggene du har brukt og du kan også her se hvilke ressurser som du har tagget med det bestemte nøkkelordet.',
|
|
1024
|
+
},
|
|
1025
|
+
},
|
|
1026
|
+
},
|
|
1027
|
+
snackbar: {
|
|
1028
|
+
close: 'Lukk melding',
|
|
967
1029
|
},
|
|
968
1030
|
labels: {
|
|
969
1031
|
category: 'Kategori',
|
|
@@ -14,6 +14,19 @@ export const { contentTypes, subjectCategories, subjectTypes } = constants;
|
|
|
14
14
|
const titleTemplate = ' - NDLA';
|
|
15
15
|
|
|
16
16
|
const messages = {
|
|
17
|
+
treeStructure: {
|
|
18
|
+
createFolder: 'Lag mappe',
|
|
19
|
+
newFolder: {
|
|
20
|
+
placeholder: 'Skriv navn på mappe',
|
|
21
|
+
defaultName: 'Ny mappe',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
tagSelector: {
|
|
25
|
+
placeholder: 'Legg til tag',
|
|
26
|
+
removeTag: 'Ta vekk tilknytninga til {{name}}',
|
|
27
|
+
hideAllTags: 'Skjul alla tags',
|
|
28
|
+
showAllTags: 'Vis alla tags',
|
|
29
|
+
},
|
|
17
30
|
htmlTitles: {
|
|
18
31
|
titleTemplate,
|
|
19
32
|
welcomePage: `Forsiden${titleTemplate}`,
|
|
@@ -755,15 +768,15 @@ const messages = {
|
|
|
755
768
|
},
|
|
756
769
|
blogPosts: {
|
|
757
770
|
blog1: {
|
|
758
|
-
text: '
|
|
759
|
-
externalLink: 'https://blogg.ndla.no/2021/
|
|
771
|
+
text: 'Forslag til årsplaner fra NDLA',
|
|
772
|
+
externalLink: 'https://blogg.ndla.no/2021/08/forslag-til-arsplaner-hos-ndla/',
|
|
760
773
|
linkText: 'Fagblogg',
|
|
761
774
|
license: 'CC-BY-SA-4.0',
|
|
762
775
|
licenseAuthor: 'Vibeke Klungland',
|
|
763
776
|
},
|
|
764
777
|
blog2: {
|
|
765
|
-
text: '
|
|
766
|
-
externalLink: 'https://blogg.ndla.no/
|
|
778
|
+
text: 'Huskeliste for kontaktlærere',
|
|
779
|
+
externalLink: 'https://blogg.ndla.no/2019/08/huskeliste-for-kontaktlaerere/',
|
|
767
780
|
linkText: 'Fagblogg',
|
|
768
781
|
license: 'CC-BY-SA-4.0',
|
|
769
782
|
licenseAuthor: 'Tom Knudsen',
|
|
@@ -943,6 +956,15 @@ const messages = {
|
|
|
943
956
|
resource: {
|
|
944
957
|
accessDenied: 'Vi beklager, men denne ressursen er bare for lærere innlogget med Feide.',
|
|
945
958
|
},
|
|
959
|
+
primarySchool: 'Hovudskule',
|
|
960
|
+
name: 'Namn',
|
|
961
|
+
mail: 'E-post',
|
|
962
|
+
username: 'Brukarnamn',
|
|
963
|
+
groupTypes: {
|
|
964
|
+
basic: 'Basisgruppe',
|
|
965
|
+
teaching: 'Undervisningsgruppe',
|
|
966
|
+
other: 'Andre grupper',
|
|
967
|
+
},
|
|
946
968
|
},
|
|
947
969
|
checkOutNewFeature: 'Sjekk ut ny funksjonalitet',
|
|
948
970
|
slateBlockMenu: {
|
|
@@ -954,15 +976,55 @@ const messages = {
|
|
|
954
976
|
close: 'Lukk faktaboks',
|
|
955
977
|
},
|
|
956
978
|
myNdla: {
|
|
957
|
-
resources: '
|
|
958
|
-
|
|
979
|
+
resources: '{{count}} ressurs',
|
|
980
|
+
resources_plural: '{{count}} ressurser',
|
|
981
|
+
folders: '{{count}} mappe',
|
|
982
|
+
folders_plural: '{{count}} mapper',
|
|
959
983
|
folder: 'Mappe',
|
|
960
984
|
myFolders: 'Mine mapper',
|
|
961
985
|
myTags: 'Mine tags',
|
|
962
986
|
newFolder: 'Ny mappe',
|
|
987
|
+
newFolderUnder: 'Lag ny mappe under {{folderName}}',
|
|
963
988
|
myAccount: 'Min konto',
|
|
964
989
|
favourites: 'Favoritter',
|
|
965
990
|
help: 'Hjelp',
|
|
991
|
+
more: 'Flere valg',
|
|
992
|
+
listView: 'Listevisning',
|
|
993
|
+
detailView: 'Detaljrik listevisning',
|
|
994
|
+
shortView: 'Kort visning',
|
|
995
|
+
myPage: {
|
|
996
|
+
myPage: 'Min side',
|
|
997
|
+
deleteAccount: 'Slett Min NDLA',
|
|
998
|
+
logout: 'Logg ut av Min NDLA',
|
|
999
|
+
welcome:
|
|
1000
|
+
'Velkommen til Min NDLA! Nå kan du lagre dine favorittressurser fra NDLA og organisere dem slik du ønsker i mapper og med tags.',
|
|
1001
|
+
read: { our: 'Les våre', ours: 'Les vår' },
|
|
1002
|
+
privacy: 'personvernerklæring her',
|
|
1003
|
+
questions: { question: 'Lurer du på noe?', ask: 'Spør oss i chatten' },
|
|
1004
|
+
wishToDelete: 'Ønsker du ikke ha brukerprofil hos oss lengre?',
|
|
1005
|
+
terms: 'vilkår for bruk',
|
|
1006
|
+
newFavourite: 'Nylig lagt til',
|
|
1007
|
+
feide: 'Dette henter vi om deg fra Feide',
|
|
1008
|
+
resource: {
|
|
1009
|
+
addToMyNdla: 'Legg i Min NDLA',
|
|
1010
|
+
addedToMyNdla: 'Lagt i Min NDLA',
|
|
1011
|
+
},
|
|
1012
|
+
storageInfo: {
|
|
1013
|
+
title: 'Slik lagrer du dine favorittressurser fra NDLA',
|
|
1014
|
+
text: 'Når du ønsker å lagre en ressurs, kan du gjøre dette ved å klikke på hjertet øverst til høyre på siden. Du vil da få mulighet til å lagre ressursen i en mappe.',
|
|
1015
|
+
},
|
|
1016
|
+
folderInfo: {
|
|
1017
|
+
title: 'Slik organiserer du dine favorittressurser i mapper',
|
|
1018
|
+
text: 'Du kommer til mappeoversikten din ved å klikke på mine mapper i menyen til venstre. Her kan du opprette nye mapper og undermapper. Du kan også opprette en ny mappe i dialogvinduet som kommer når du klikker på et hjerte i en ressurs.',
|
|
1019
|
+
},
|
|
1020
|
+
tagInfo: {
|
|
1021
|
+
title: 'Slik tagger du dine favorittressurser',
|
|
1022
|
+
text: 'Når du lagrer en ressurs får du mulighet til å tagge ressursen med et nøkkelord. Du kan senere bruke taggene til å finne tilbake til ressurser på tvers av mapper. Ved å velge mine tagger i venstremenyen får du oversikt over alle taggene du har brukt og du kan også her se hvilke ressurser som du har tagget med det bestemte nøkkelordet.',
|
|
1023
|
+
},
|
|
1024
|
+
},
|
|
1025
|
+
},
|
|
1026
|
+
snackbar: {
|
|
1027
|
+
close: 'Lukk melding',
|
|
966
1028
|
},
|
|
967
1029
|
labels: {
|
|
968
1030
|
category: 'Kategori',
|
|
@@ -14,6 +14,19 @@ export const { contentTypes, subjectCategories, subjectTypes } = constants;
|
|
|
14
14
|
const titleTemplate = ' - NDLA';
|
|
15
15
|
|
|
16
16
|
const messages = {
|
|
17
|
+
treeStructure: {
|
|
18
|
+
createFolder: 'Lag mappe',
|
|
19
|
+
newFolder: {
|
|
20
|
+
placeholder: 'Skriv navn på mappe',
|
|
21
|
+
defaultName: 'Ny mappe',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
tagSelector: {
|
|
25
|
+
placeholder: 'Tilknytt tag',
|
|
26
|
+
removeTag: 'Ta vekk tilknytning til {{name}}',
|
|
27
|
+
hideAllTags: 'Skjul alle tagger',
|
|
28
|
+
showAllTags: 'Vis alle tagger',
|
|
29
|
+
},
|
|
17
30
|
htmlTitles: {
|
|
18
31
|
titleTemplate,
|
|
19
32
|
welcomePage: `Forsiden${titleTemplate}`,
|
|
@@ -755,15 +768,15 @@ const messages = {
|
|
|
755
768
|
},
|
|
756
769
|
blogPosts: {
|
|
757
770
|
blog1: {
|
|
758
|
-
text: '
|
|
759
|
-
externalLink: 'https://blogg.ndla.no/2021/
|
|
771
|
+
text: 'Forslag til årsplaner fra NDLA',
|
|
772
|
+
externalLink: 'https://blogg.ndla.no/2021/08/forslag-til-arsplaner-hos-ndla/',
|
|
760
773
|
linkText: 'Fagblogg',
|
|
761
774
|
license: 'CC-BY-SA-4.0',
|
|
762
775
|
licenseAuthor: 'Vibeke Klungland',
|
|
763
776
|
},
|
|
764
777
|
blog2: {
|
|
765
|
-
text: '
|
|
766
|
-
externalLink: 'https://blogg.ndla.no/
|
|
778
|
+
text: 'Huskeliste for kontaktlærere',
|
|
779
|
+
externalLink: 'https://blogg.ndla.no/2019/08/huskeliste-for-kontaktlaerere/',
|
|
767
780
|
linkText: 'Fagblogg',
|
|
768
781
|
license: 'CC-BY-SA-4.0',
|
|
769
782
|
licenseAuthor: 'Tom Knudsen',
|
|
@@ -943,6 +956,15 @@ const messages = {
|
|
|
943
956
|
resource: {
|
|
944
957
|
accessDenied: 'Vi beklager, men denne ressursen er bare for lærere innlogget med Feide.',
|
|
945
958
|
},
|
|
959
|
+
primarySchool: 'Hovudskule',
|
|
960
|
+
name: 'Namn',
|
|
961
|
+
mail: 'E-post',
|
|
962
|
+
username: 'Brukarnamn',
|
|
963
|
+
groupTypes: {
|
|
964
|
+
basic: 'Basisgruppe',
|
|
965
|
+
teaching: 'Undervisningsgruppe',
|
|
966
|
+
other: 'Andre grupper',
|
|
967
|
+
},
|
|
946
968
|
},
|
|
947
969
|
checkOutNewFeature: 'Sjekk ut ny funksjonalitet',
|
|
948
970
|
slateBlockMenu: {
|
|
@@ -954,15 +976,55 @@ const messages = {
|
|
|
954
976
|
close: 'Lukk faktaboks',
|
|
955
977
|
},
|
|
956
978
|
myNdla: {
|
|
957
|
-
resources: '
|
|
958
|
-
|
|
979
|
+
resources: '{{count}} ressurs',
|
|
980
|
+
resources_plural: '{{count}} ressurser',
|
|
981
|
+
folders: '{{count}} mappe',
|
|
982
|
+
folders_plural: '{{count}} mapper',
|
|
959
983
|
folder: 'Mappe',
|
|
960
984
|
myFolders: 'Mine mapper',
|
|
961
985
|
myTags: 'Mine tags',
|
|
962
986
|
newFolder: 'Ny mappe',
|
|
987
|
+
newFolderUnder: 'Lag ny mappe under {{folderName}}',
|
|
963
988
|
myAccount: 'Min konto',
|
|
964
989
|
favourites: 'Favoritter',
|
|
965
990
|
help: 'Hjelp',
|
|
991
|
+
more: 'Flere valg',
|
|
992
|
+
listView: 'Listevisning',
|
|
993
|
+
detailView: 'Detaljrik listevisning',
|
|
994
|
+
shortView: 'Kort visning',
|
|
995
|
+
myPage: {
|
|
996
|
+
myPage: 'Min side',
|
|
997
|
+
deleteAccount: 'Slett Min NDLA',
|
|
998
|
+
logout: 'Logg ut av Min NDLA',
|
|
999
|
+
welcome:
|
|
1000
|
+
'Velkommen til Min NDLA! Nå kan du lagre dine favorittressurser fra NDLA og organisere dem slik du ønsker i mapper og med tags.',
|
|
1001
|
+
read: { our: 'Les våre', ours: 'Les vår' },
|
|
1002
|
+
privacy: 'personvernerklæring her',
|
|
1003
|
+
questions: { question: 'Lurer du på noe?', ask: 'Spør oss i chatten' },
|
|
1004
|
+
wishToDelete: 'Ønsker du ikke ha brukerprofil hos oss lengre?',
|
|
1005
|
+
terms: 'vilkår for bruk',
|
|
1006
|
+
newFavourite: 'Nylig lagt til',
|
|
1007
|
+
feide: 'Dette henter vi om deg fra Feide',
|
|
1008
|
+
resource: {
|
|
1009
|
+
addToMyNdla: 'Legg i Min NDLA',
|
|
1010
|
+
addedToMyNdla: 'Lagt i Min NDLA',
|
|
1011
|
+
},
|
|
1012
|
+
storageInfo: {
|
|
1013
|
+
title: 'Slik lagrer du dine favorittressurser fra NDLA',
|
|
1014
|
+
text: 'Når du ønsker å lagre en ressurs, kan du gjøre dette ved å klikke på hjertet øverst til høyre på siden. Du vil da få mulighet til å lagre ressursen i en mappe.',
|
|
1015
|
+
},
|
|
1016
|
+
folderInfo: {
|
|
1017
|
+
title: 'Slik organiserer du dine favorittressurser i mapper',
|
|
1018
|
+
text: 'Du kommer til mappeoversikten din ved å klikke på mine mapper i menyen til venstre. Her kan du opprette nye mapper og undermapper. Du kan også opprette en ny mappe i dialogvinduet som kommer når du klikker på et hjerte i en ressurs.',
|
|
1019
|
+
},
|
|
1020
|
+
tagInfo: {
|
|
1021
|
+
title: 'Slik tagger du dine favorittressurser',
|
|
1022
|
+
text: 'Når du lagrer en ressurs får du mulighet til å tagge ressursen med et nøkkelord. Du kan senere bruke taggene til å finne tilbake til ressurser på tvers av mapper. Ved å velge mine tagger i venstremenyen får du oversikt over alle taggene du har brukt og du kan også her se hvilke ressurser som du har tagget med det bestemte nøkkelordet.',
|
|
1023
|
+
},
|
|
1024
|
+
},
|
|
1025
|
+
},
|
|
1026
|
+
snackbar: {
|
|
1027
|
+
close: 'Lukk melding',
|
|
966
1028
|
},
|
|
967
1029
|
labels: {
|
|
968
1030
|
category: 'Kategori',
|
package/src/types.ts
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import _styled from "@emotion/styled-base";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx as ___EmotionJSX } from "@emotion/core";
|
|
4
|
-
|
|
5
|
-
var BreadcrumbsWrapper = _styled("div", {
|
|
6
|
-
target: "eyah3jn0",
|
|
7
|
-
label: "BreadcrumbsWrapper"
|
|
8
|
-
})(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJyZWFkY3J1bWJzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFXcUMiLCJmaWxlIjoiQnJlYWRjcnVtYnMudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjItcHJlc2VudCwgTkRMQS5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBHUEx2MyBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICpcbiAqL1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5jb25zdCBCcmVhZGNydW1ic1dyYXBwZXIgPSBzdHlsZWQuZGl2YGA7XG5cbnR5cGUgQnJlYWRjcnVtYnNQcm9wcyA9IHtcbiAgaXRlbXM6IHtcbiAgICB0aXRsZTogc3RyaW5nO1xuICAgIHVybDogc3RyaW5nO1xuICB9W107XG59O1xuXG5leHBvcnQgY29uc3QgQnJlYWRjcnVtYnMgPSAoeyBpdGVtcyB9OiBCcmVhZGNydW1ic1Byb3BzKSA9PiB7XG4gIDxCcmVhZGNydW1ic1dyYXBwZXI+XG4gICAge2l0ZW1zLm1hcCgoeyB0aXRsZSwgdXJsIH0pID0+IChcbiAgICAgIDxhIGtleT17dXJsfSBocmVmPXt1cmx9PlxuICAgICAgICB7dGl0bGV9XG4gICAgICA8L2E+XG4gICAgKSl9XG4gIDwvQnJlYWRjcnVtYnNXcmFwcGVyPjtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEJyZWFkY3J1bWJzO1xuIl19 */");
|
|
9
|
-
|
|
10
|
-
export var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
11
|
-
var items = _ref.items;
|
|
12
|
-
|
|
13
|
-
___EmotionJSX(BreadcrumbsWrapper, null, items.map(function (_ref2) {
|
|
14
|
-
var title = _ref2.title,
|
|
15
|
-
url = _ref2.url;
|
|
16
|
-
return ___EmotionJSX("a", {
|
|
17
|
-
key: url,
|
|
18
|
-
href: url
|
|
19
|
-
}, title);
|
|
20
|
-
}));
|
|
21
|
-
};
|
|
22
|
-
export default Breadcrumbs;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import _styled from "@emotion/styled-base";
|
|
2
|
-
import React from 'react'; // import { useTranslation } from 'react-i18next';
|
|
3
|
-
|
|
4
|
-
import { jsx as ___EmotionJSX } from "@emotion/core";
|
|
5
|
-
|
|
6
|
-
var ResourceElementWrapper = _styled("div", {
|
|
7
|
-
target: "eskq45w0",
|
|
8
|
-
label: "ResourceElementWrapper"
|
|
9
|
-
})("display:flex;align-items:center;padding:0.5rem;border:1px solid rgba(209,214,219,1);border-radius:2px;background:", function (_ref) {
|
|
10
|
-
var type = _ref.type;
|
|
11
|
-
return type === 'folder' ? '#fafaf9' : '#fff';
|
|
12
|
-
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlc291cmNlRWxlbWVudC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JxRSIsImZpbGUiOiJSZXNvdXJjZUVsZW1lbnQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjItcHJlc2VudCwgTkRMQS5cbiAqXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBHUEx2MyBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICpcbiAqL1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgUmVhY3QsIHsgUmVhY3RFbGVtZW50IH0gZnJvbSAncmVhY3QnO1xuLy8gaW1wb3J0IHsgdXNlVHJhbnNsYXRpb24gfSBmcm9tICdyZWFjdC1pMThuZXh0JztcblxudHlwZSBSZXNvdXJjZUVsZW1lbnRXcmFwcGVyUHJvcCA9IHtcbiAgdHlwZTogJ2ZvbGRlcicgfCAncmVzb3VyY2UnO1xufTtcblxuY29uc3QgUmVzb3VyY2VFbGVtZW50V3JhcHBlciA9IHN0eWxlZC5kaXY8UmVzb3VyY2VFbGVtZW50V3JhcHBlclByb3A+YFxuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBwYWRka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
|
13
|
-
|
|
14
|
-
var ResourceElement = function ResourceElement(_ref2) {
|
|
15
|
-
var type = _ref2.type,
|
|
16
|
-
title = _ref2.title,
|
|
17
|
-
description = _ref2.description,
|
|
18
|
-
leftSide = _ref2.leftSide,
|
|
19
|
-
rightSide = _ref2.rightSide,
|
|
20
|
-
children = _ref2.children;
|
|
21
|
-
// const { t } = useTranslation();
|
|
22
|
-
return ___EmotionJSX(ResourceElementWrapper, {
|
|
23
|
-
type: type
|
|
24
|
-
}, ___EmotionJSX("div", null, leftSide), ___EmotionJSX("div", null, ___EmotionJSX("h1", null, title), ___EmotionJSX("p", null, description), children), ___EmotionJSX("div", null, rightSide));
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default ResourceElement;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import _styled from "@emotion/styled-base";
|
|
2
|
-
|
|
3
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import ResourceElement from './ResourceElement';
|
|
7
|
-
import { jsx as ___EmotionJSX } from "@emotion/core";
|
|
8
|
-
|
|
9
|
-
var ResourcesWrapper = _styled("div", {
|
|
10
|
-
target: "eef59gq0",
|
|
11
|
-
label: "ResourcesWrapper"
|
|
12
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
13
|
-
name: "1hhdphc",
|
|
14
|
-
styles: "display:flex;flex-direction:column;gap:1rem;0;"
|
|
15
|
-
} : {
|
|
16
|
-
name: "1hhdphc",
|
|
17
|
-
styles: "display:flex;flex-direction:column;gap:1rem;0;",
|
|
18
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlc291cmNlc1ZpZXcudHN4Il0sIm5hbWVzIjpbXSwibWFwcG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gY2hpbGQuLiBpbnNlcnQgY29udGVudDwvcD5cbiAgICAgIDwvUmVzb3VyY2VFbGVtZW50PlxuICAgICAgPFJlc291cmNlRWxlbWVudFxuICAgICAgICB0eXBlPVwicmVzb3VyY2VcIlxuICAgICAgICB0aXRsZT1cIkV4YW1wbGUgUmVzb3VyY2VcIlxuICAgICAgICBsZWZ0U2lkZT17PGltZyBzcmM9XCJodHRwOi8vcGxhY2VraXR0ZW4uY29tLzIwMC8yMDBcIiBhbHQ9XCJCcnJyXCIgLz59XG4gICAgICAgIHJpZ2h0U2lkZT17PHNwYW4+I3RhZzwvc3Bhbj59XG4gICAgICAgIGRlc2NyaXB0aW9uPVwic29tZSBkZXNjcmlwdGlvblwiPlxuICAgICAgICA8cD5JbSBhIGNoaWxkLi4gaW5zZXJ0IGNvbnRlbnQ8L3A+XG4gICAgICA8L1Jlc291cmNlRWxlbWVudD5cbiAgICA8L1Jlc291cmNlc1dyYXBwZXI+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBSZXNvdXJjZXNWaWV3O1xuIl19 */",
|
|
19
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export var ResourcesView = function ResourcesView() {
|
|
23
|
-
return ___EmotionJSX(ResourcesWrapper, null, ___EmotionJSX(ResourceElement, {
|
|
24
|
-
type: "folder",
|
|
25
|
-
title: "Example folder",
|
|
26
|
-
leftSide: ___EmotionJSX("img", {
|
|
27
|
-
src: "http://placekitten.com/200/200",
|
|
28
|
-
alt: "Mjaoo"
|
|
29
|
-
}),
|
|
30
|
-
rightSide: ___EmotionJSX("span", null, "#tag"),
|
|
31
|
-
description: "some description"
|
|
32
|
-
}, ___EmotionJSX("p", null, "Im a child.. insert content")), ___EmotionJSX(ResourceElement, {
|
|
33
|
-
type: "resource",
|
|
34
|
-
title: "Example Resource",
|
|
35
|
-
leftSide: ___EmotionJSX("img", {
|
|
36
|
-
src: "http://placekitten.com/200/200",
|
|
37
|
-
alt: "Brrr"
|
|
38
|
-
}),
|
|
39
|
-
rightSide: ___EmotionJSX("span", null, "#tag"),
|
|
40
|
-
description: "some description"
|
|
41
|
-
}, ___EmotionJSX("p", null, "Im a child.. insert content")));
|
|
42
|
-
};
|
|
43
|
-
export default ResourcesView;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2022-present, NDLA.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
declare type BreadcrumbsProps = {
|
|
9
|
-
items: {
|
|
10
|
-
title: string;
|
|
11
|
-
url: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
export declare const Breadcrumbs: ({ items }: BreadcrumbsProps) => void;
|
|
15
|
-
export default Breadcrumbs;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = exports.Breadcrumbs = void 0;
|
|
7
|
-
|
|
8
|
-
var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _core = require("@emotion/core");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
var BreadcrumbsWrapper = (0, _styledBase["default"])("div", {
|
|
17
|
-
target: "eyah3jn0",
|
|
18
|
-
label: "BreadcrumbsWrapper"
|
|
19
|
-
})(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJyZWFkY3J1bWJzLnRz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sWrapper, null, items.map(function (_ref2) {
|
|
24
|
-
var title = _ref2.title,
|
|
25
|
-
url = _ref2.url;
|
|
26
|
-
return (0, _core.jsx)("a", {
|
|
27
|
-
key: url,
|
|
28
|
-
href: url
|
|
29
|
-
}, title);
|
|
30
|
-
}));
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
exports.Breadcrumbs = Breadcrumbs;
|
|
34
|
-
var _default = Breadcrumbs;
|
|
35
|
-
exports["default"] = _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2022-present, NDLA.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
import { ReactElement } from 'react';
|
|
9
|
-
declare type ResourceElementProps = {
|
|
10
|
-
type: 'folder' | 'resource';
|
|
11
|
-
title: string;
|
|
12
|
-
rightSide?: ReactElement;
|
|
13
|
-
leftSide?: ReactElement;
|
|
14
|
-
description?: string;
|
|
15
|
-
children?: ReactElement;
|
|
16
|
-
};
|
|
17
|
-
declare const ResourceElement: ({ type, title, description, leftSide, rightSide, children }: ResourceElementProps) => JSX.Element;
|
|
18
|
-
export default ResourceElement;
|