@ndla/ui 34.4.0 → 34.6.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 +6 -7
- package/es/MyNdla/Resource/Folder.js +38 -29
- package/es/Resource/BlockResource.js +21 -13
- package/es/Resource/ListResource.js +12 -21
- package/es/Resource/resourceComponents.js +18 -22
- package/es/locale/messages-en.js +3 -3
- package/es/locale/messages-nb.js +3 -3
- package/es/locale/messages-nn.js +3 -3
- package/es/locale/messages-sma.js +7 -7
- package/lib/Article/Article.js +6 -7
- package/lib/MyNdla/Resource/Folder.js +38 -29
- package/lib/Resource/BlockResource.js +20 -12
- package/lib/Resource/ListResource.js +12 -21
- package/lib/Resource/resourceComponents.d.ts +0 -4
- package/lib/Resource/resourceComponents.js +19 -24
- package/lib/User/apiTypes.d.ts +3 -3
- package/lib/locale/messages-en.js +3 -3
- package/lib/locale/messages-nb.js +3 -3
- package/lib/locale/messages-nn.js +3 -3
- package/lib/locale/messages-sma.js +7 -7
- package/package.json +16 -16
- package/src/Article/Article.tsx +4 -3
- package/src/MyNdla/Resource/Folder.tsx +8 -12
- package/src/Resource/BlockResource.tsx +8 -8
- package/src/Resource/ListResource.tsx +15 -13
- package/src/Resource/resourceComponents.tsx +5 -6
- package/src/User/__tests__/parseUserObject-test.ts +10 -10
- package/src/User/apiTypes.ts +3 -3
- package/src/locale/messages-en.ts +3 -3
- package/src/locale/messages-nb.ts +3 -3
- package/src/locale/messages-nn.ts +3 -3
- package/src/locale/messages-sma.ts +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "34.
|
|
3
|
+
"version": "34.6.0",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ndla/article-scripts": "^3.0.14",
|
|
35
|
-
"@ndla/button": "^9.1.
|
|
36
|
-
"@ndla/carousel": "^3.0.
|
|
37
|
-
"@ndla/core": "^3.1.
|
|
38
|
-
"@ndla/forms": "^4.2.
|
|
39
|
-
"@ndla/hooks": "^
|
|
40
|
-
"@ndla/icons": "^2.2.
|
|
41
|
-
"@ndla/licenses": "^7.0.
|
|
42
|
-
"@ndla/modal": "^2.2.
|
|
43
|
-
"@ndla/notion": "^4.2.
|
|
44
|
-
"@ndla/safelink": "^4.0.
|
|
45
|
-
"@ndla/switch": "^1.0.
|
|
46
|
-
"@ndla/tabs": "^2.1.
|
|
47
|
-
"@ndla/tooltip": "^4.0.
|
|
35
|
+
"@ndla/button": "^9.1.3",
|
|
36
|
+
"@ndla/carousel": "^3.0.3",
|
|
37
|
+
"@ndla/core": "^3.1.2",
|
|
38
|
+
"@ndla/forms": "^4.2.6",
|
|
39
|
+
"@ndla/hooks": "^2.0.1",
|
|
40
|
+
"@ndla/icons": "^2.2.3",
|
|
41
|
+
"@ndla/licenses": "^7.0.1",
|
|
42
|
+
"@ndla/modal": "^2.2.7",
|
|
43
|
+
"@ndla/notion": "^4.2.3",
|
|
44
|
+
"@ndla/safelink": "^4.0.8",
|
|
45
|
+
"@ndla/switch": "^1.0.7",
|
|
46
|
+
"@ndla/tabs": "^2.1.6",
|
|
47
|
+
"@ndla/tooltip": "^4.0.9",
|
|
48
48
|
"@ndla/types-learningpath-api": "^0.0.17",
|
|
49
49
|
"@ndla/util": "^3.1.9",
|
|
50
50
|
"@radix-ui/react-dropdown-menu": "2.0.2",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"i18next-browser-languagedetector": "^6.1.1",
|
|
57
57
|
"invariant": "^2.2.3",
|
|
58
58
|
"react-bem-helper": "1.4.1",
|
|
59
|
-
"react-device-detect": "^2.2.
|
|
59
|
+
"react-device-detect": "^2.2.3",
|
|
60
60
|
"react-select": "^5.7.0",
|
|
61
61
|
"react-swipeable": "^7.0.0",
|
|
62
62
|
"remarkable": "^2.0.1",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "50e9e5252247d22709a54d0ad481c10ad62f803b"
|
|
87
87
|
}
|
package/src/Article/Article.tsx
CHANGED
|
@@ -167,13 +167,14 @@ export const Article = ({
|
|
|
167
167
|
heartButton,
|
|
168
168
|
copyText,
|
|
169
169
|
}: Props) => {
|
|
170
|
-
const
|
|
171
|
-
|
|
170
|
+
const articleRef = useRef<HTMLDivElement>(null);
|
|
171
|
+
const wrapperRef = useRef<HTMLDivElement>(null);
|
|
172
|
+
const { entry } = useIntersectionObserver({
|
|
172
173
|
rootMargin: '400px',
|
|
174
|
+
target: articleRef.current,
|
|
173
175
|
threshold: 0.1,
|
|
174
176
|
});
|
|
175
177
|
const [articlePositionRight, setArticlePositionRight] = useState(0);
|
|
176
|
-
const wrapperRef = useRef<HTMLDivElement>(null);
|
|
177
178
|
|
|
178
179
|
const showExplainNotions = entry && entry.isIntersecting;
|
|
179
180
|
|
|
@@ -26,8 +26,6 @@ const FolderWrapper = styled.div<LayoutProps>`
|
|
|
26
26
|
position: relative;
|
|
27
27
|
align-items: center;
|
|
28
28
|
justify-content: space-between;
|
|
29
|
-
padding: ${spacing.nsmall};
|
|
30
|
-
gap: ${spacing.small};
|
|
31
29
|
|
|
32
30
|
${mq.range({ until: breakpoints.mobileWide })} {
|
|
33
31
|
${({ type }) =>
|
|
@@ -56,8 +54,10 @@ const FolderWrapper = styled.div<LayoutProps>`
|
|
|
56
54
|
}
|
|
57
55
|
`;
|
|
58
56
|
|
|
59
|
-
const TitleWrapper = styled.div
|
|
57
|
+
const TitleWrapper = styled.div<LayoutProps>`
|
|
60
58
|
display: flex;
|
|
59
|
+
margin: ${spacing.nsmall};
|
|
60
|
+
margin-bottom: ${({ type }) => type === 'block' && 0};
|
|
61
61
|
flex-direction: row;
|
|
62
62
|
align-items: center;
|
|
63
63
|
gap: ${spacing.xsmall};
|
|
@@ -94,26 +94,22 @@ const FolderTitle = styled.h2`
|
|
|
94
94
|
}
|
|
95
95
|
`;
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
hasMenuButton: boolean;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const MenuWrapper = styled.div<MenuWrapperProps>`
|
|
97
|
+
const MenuWrapper = styled.div`
|
|
102
98
|
overflow: hidden;
|
|
103
99
|
display: flex;
|
|
104
100
|
z-index: 1;
|
|
105
101
|
flex-direction: row;
|
|
106
102
|
align-items: center;
|
|
107
|
-
gap: ${spacing.xsmall};
|
|
108
103
|
justify-content: space-between;
|
|
109
|
-
margin: -${spacing.nsmall} -${(props) => (props.hasMenuButton ? spacing.nsmall : 0)} -${spacing.nsmall} 0;
|
|
110
104
|
`;
|
|
111
105
|
|
|
112
106
|
const CountContainer = styled.div`
|
|
113
107
|
overflow: hidden;
|
|
114
108
|
display: flex;
|
|
115
109
|
flex-direction: row;
|
|
110
|
+
min-height: 44px;
|
|
116
111
|
gap: ${spacing.small};
|
|
112
|
+
margin: 0 ${spacing.small} 0 ${spacing.nsmall};
|
|
117
113
|
`;
|
|
118
114
|
|
|
119
115
|
const IconCountWrapper = styled.div<LayoutProps>`
|
|
@@ -171,7 +167,7 @@ const Folder = ({ id, link, title, subFolders, subResources, type = 'list', menu
|
|
|
171
167
|
|
|
172
168
|
return (
|
|
173
169
|
<FolderWrapper type={type} id={id}>
|
|
174
|
-
<TitleWrapper>
|
|
170
|
+
<TitleWrapper type={type}>
|
|
175
171
|
<IconWrapper>
|
|
176
172
|
<FolderOutlined aria-label={t('myNdla.folder.folder')} />
|
|
177
173
|
</IconWrapper>
|
|
@@ -179,7 +175,7 @@ const Folder = ({ id, link, title, subFolders, subResources, type = 'list', menu
|
|
|
179
175
|
<FolderTitle title={title}>{title}</FolderTitle>
|
|
180
176
|
</ResourceTitleLink>
|
|
181
177
|
</TitleWrapper>
|
|
182
|
-
<MenuWrapper
|
|
178
|
+
<MenuWrapper>
|
|
183
179
|
<CountContainer>
|
|
184
180
|
<Count layoutType={type} type={'folder'} count={subFolders} />
|
|
185
181
|
<Count layoutType={type} type={'resource'} count={subResources} />
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import styled from '@emotion/styled';
|
|
10
|
-
import React
|
|
10
|
+
import React from 'react';
|
|
11
11
|
import { colors, fonts, spacing } from '@ndla/core';
|
|
12
12
|
import { MenuButton, MenuItemProps } from '@ndla/button';
|
|
13
13
|
import ContentTypeBadge from '../ContentTypeBadge';
|
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
CompressedTagList,
|
|
17
17
|
ResourceImageProps,
|
|
18
18
|
ResourceTitle,
|
|
19
|
-
Row,
|
|
20
19
|
ResourceTypeList,
|
|
21
20
|
ResourceTitleLink,
|
|
22
21
|
LoaderProps,
|
|
@@ -67,20 +66,21 @@ const BlockDescription = styled.p`
|
|
|
67
66
|
}
|
|
68
67
|
`;
|
|
69
68
|
|
|
70
|
-
const
|
|
71
|
-
|
|
69
|
+
const TagsAndActionMenu = styled.div`
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
72
|
justify-content: flex-end;
|
|
73
|
-
|
|
73
|
+
z-index: 1;
|
|
74
74
|
`;
|
|
75
75
|
|
|
76
76
|
const BlockInfoWrapper = styled.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
flex-direction: column;
|
|
79
|
-
padding: ${spacing.small};
|
|
80
79
|
`;
|
|
81
80
|
|
|
82
81
|
const ContentWrapper = styled.div`
|
|
83
82
|
display: flex;
|
|
83
|
+
margin: ${spacing.small} ${spacing.small} 0 ${spacing.small};
|
|
84
84
|
flex-direction: column;
|
|
85
85
|
`;
|
|
86
86
|
|
|
@@ -186,10 +186,10 @@ const BlockResource = ({
|
|
|
186
186
|
<ResourceTypeList resourceTypes={resourceTypes} />
|
|
187
187
|
<BlockDescription>{description}</BlockDescription>
|
|
188
188
|
</ContentWrapper>
|
|
189
|
-
<
|
|
189
|
+
<TagsAndActionMenu>
|
|
190
190
|
{tags && tags.length > 0 && <CompressedTagList tagLinkPrefix={tagLinkPrefix} tags={tags} />}
|
|
191
191
|
{menuItems && menuItems.length > 0 && <MenuButton align="end" size="small" menuItems={menuItems} />}
|
|
192
|
-
</
|
|
192
|
+
</TagsAndActionMenu>
|
|
193
193
|
</BlockInfoWrapper>
|
|
194
194
|
</BlockElementWrapper>
|
|
195
195
|
);
|
|
@@ -40,8 +40,6 @@ const ListResourceWrapper = styled.div`
|
|
|
40
40
|
'tags tags';
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
padding: ${spacing.small};
|
|
44
|
-
column-gap: ${spacing.small};
|
|
45
43
|
cursor: pointer;
|
|
46
44
|
border: 1px solid ${colors.brand.neutral7};
|
|
47
45
|
border-radius: 2px;
|
|
@@ -65,10 +63,12 @@ const ImageWrapper = styled.div<StyledImageProps>`
|
|
|
65
63
|
width: ${(p) => (p.imageSize === 'normal' ? '136px' : '56px')};
|
|
66
64
|
${mq.range({ until: breakpoints.mobileWide })} {
|
|
67
65
|
width: 56px;
|
|
66
|
+
margin-bottom: 0;
|
|
68
67
|
}
|
|
69
68
|
overflow: hidden;
|
|
70
69
|
border-radius: 2px;
|
|
71
70
|
display: flex;
|
|
71
|
+
margin: ${spacing.small};
|
|
72
72
|
align-items: center;
|
|
73
73
|
justify-content: center;
|
|
74
74
|
aspect-ratio: 4/3;
|
|
@@ -84,8 +84,10 @@ const StyledResourceDescription = styled.p`
|
|
|
84
84
|
line-clamp: 2;
|
|
85
85
|
line-height: 1em;
|
|
86
86
|
height: 3.1em;
|
|
87
|
-
margin: 0;
|
|
88
|
-
|
|
87
|
+
margin: 0 ${spacing.small} ${spacing.small} 0;
|
|
88
|
+
${mq.range({ until: breakpoints.mobileWide })} {
|
|
89
|
+
margin: 0 ${spacing.small};
|
|
90
|
+
}
|
|
89
91
|
overflow: hidden;
|
|
90
92
|
${fonts.sizes(16)};
|
|
91
93
|
text-overflow: ellipsis;
|
|
@@ -96,11 +98,7 @@ const StyledResourceDescription = styled.p`
|
|
|
96
98
|
-webkit-box-orient: vertical;
|
|
97
99
|
`;
|
|
98
100
|
|
|
99
|
-
|
|
100
|
-
hasMenuButton: boolean;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const TagsandActionMenu = styled.div<TagsAndActionProps>`
|
|
101
|
+
const TagsandActionMenu = styled.div`
|
|
104
102
|
grid-area: tags;
|
|
105
103
|
z-index: 1;
|
|
106
104
|
box-sizing: content-box;
|
|
@@ -109,18 +107,22 @@ const TagsandActionMenu = styled.div<TagsAndActionProps>`
|
|
|
109
107
|
align-items: center;
|
|
110
108
|
align-self: flex-start;
|
|
111
109
|
justify-items: flex-end;
|
|
112
|
-
|
|
110
|
+
overflow: hidden;
|
|
113
111
|
${mq.range({ until: breakpoints.mobileWide })} {
|
|
114
|
-
|
|
112
|
+
min-height: ${spacing.small};
|
|
115
113
|
}
|
|
116
|
-
overflow: hidden;
|
|
117
114
|
`;
|
|
118
115
|
|
|
119
116
|
const TopicAndTitleWrapper = styled.div`
|
|
120
117
|
grid-area: topicAndTitle;
|
|
121
118
|
display: flex;
|
|
119
|
+
margin: ${spacing.small} 0;
|
|
122
120
|
flex-direction: column;
|
|
123
121
|
overflow: hidden;
|
|
122
|
+
margin-right: ${spacing.small};
|
|
123
|
+
${mq.range({ until: breakpoints.mobileWide })} {
|
|
124
|
+
margin-bottom: 0;
|
|
125
|
+
}
|
|
124
126
|
`;
|
|
125
127
|
|
|
126
128
|
interface ListResourceImageProps {
|
|
@@ -241,7 +243,7 @@ const ListResource = ({
|
|
|
241
243
|
</TypeAndTitleLoader>
|
|
242
244
|
</TopicAndTitleWrapper>
|
|
243
245
|
{showDescription && <Description description={description} loading={isLoading} />}
|
|
244
|
-
<TagsandActionMenu
|
|
246
|
+
<TagsandActionMenu>
|
|
245
247
|
{tags && tags.length > 0 && <CompressedTagList tagLinkPrefix={tagLinkPrefix} tags={tags} />}
|
|
246
248
|
{menuItems && menuItems.length > 0 && <MenuButton align="end" size="small" menuItems={menuItems} />}
|
|
247
249
|
</TagsandActionMenu>
|
|
@@ -53,9 +53,13 @@ const StyledTagList = styled.ul`
|
|
|
53
53
|
list-style: none;
|
|
54
54
|
display: flex;
|
|
55
55
|
margin: 0;
|
|
56
|
+
margin-left: ${spacing.small};
|
|
56
57
|
padding: 2px;
|
|
57
58
|
gap: ${spacing.xsmall};
|
|
58
59
|
overflow: hidden;
|
|
60
|
+
:last-child {
|
|
61
|
+
margin-right: ${spacing.small};
|
|
62
|
+
}
|
|
59
63
|
`;
|
|
60
64
|
|
|
61
65
|
const StyledTagListElement = styled.li`
|
|
@@ -71,6 +75,7 @@ const StyledSafeLink = styled(SafeLink)`
|
|
|
71
75
|
color: ${colors.brand.grey};
|
|
72
76
|
min-height: 44px;
|
|
73
77
|
min-width: 44px;
|
|
78
|
+
white-space: nowrap;
|
|
74
79
|
&:hover {
|
|
75
80
|
color: ${colors.brand.primary};
|
|
76
81
|
}
|
|
@@ -99,12 +104,6 @@ const StyledResourceListElement = styled.li`
|
|
|
99
104
|
align-items: center;
|
|
100
105
|
`;
|
|
101
106
|
|
|
102
|
-
export const Row = styled.div`
|
|
103
|
-
display: flex;
|
|
104
|
-
align-items: center;
|
|
105
|
-
gap: ${spacing.xsmall};
|
|
106
|
-
`;
|
|
107
|
-
|
|
108
107
|
const TagCounterWrapper = styled.span`
|
|
109
108
|
display: flex;
|
|
110
109
|
font-weight: ${fonts.weight.semibold};
|
|
@@ -70,7 +70,7 @@ const feideUserLaerer: FeideUserApiType = {
|
|
|
70
70
|
parent: 'fc:org:spusers.feide.no:unit:NO856326501',
|
|
71
71
|
membership: {
|
|
72
72
|
basic: 'member',
|
|
73
|
-
affiliation: 'employee',
|
|
73
|
+
affiliation: ['employee'],
|
|
74
74
|
displayName: 'Ansatt',
|
|
75
75
|
},
|
|
76
76
|
go_type_displayName: 'basisgruppe',
|
|
@@ -85,7 +85,7 @@ const feideUserLaerer: FeideUserApiType = {
|
|
|
85
85
|
parent: 'fc:org:spusers.feide.no:unit:NO856326501',
|
|
86
86
|
membership: {
|
|
87
87
|
basic: 'member',
|
|
88
|
-
affiliation: 'employee',
|
|
88
|
+
affiliation: ['employee'],
|
|
89
89
|
displayName: 'Ansatt',
|
|
90
90
|
},
|
|
91
91
|
go_type_displayName: 'other groups',
|
|
@@ -100,7 +100,7 @@ const feideUserLaerer: FeideUserApiType = {
|
|
|
100
100
|
parent: 'fc:org:spusers.feide.no:unit:NO856326501',
|
|
101
101
|
membership: {
|
|
102
102
|
basic: 'member',
|
|
103
|
-
affiliation: 'employee',
|
|
103
|
+
affiliation: ['employee'],
|
|
104
104
|
displayName: 'Ansatt',
|
|
105
105
|
},
|
|
106
106
|
go_type_displayName: 'other groups',
|
|
@@ -115,7 +115,7 @@ const feideUserLaerer: FeideUserApiType = {
|
|
|
115
115
|
parent: 'fc:org:spusers.feide.no:unit:NO856326501',
|
|
116
116
|
membership: {
|
|
117
117
|
basic: 'member',
|
|
118
|
-
affiliation: 'employee',
|
|
118
|
+
affiliation: ['employee'],
|
|
119
119
|
displayName: 'Ansatt',
|
|
120
120
|
},
|
|
121
121
|
go_type_displayName: 'undervisningsgruppe',
|
|
@@ -134,7 +134,7 @@ const feideUserLaerer: FeideUserApiType = {
|
|
|
134
134
|
parent: 'fc:org:spusers.feide.no:unit:NO856326501',
|
|
135
135
|
membership: {
|
|
136
136
|
basic: 'member',
|
|
137
|
-
affiliation: 'employee',
|
|
137
|
+
affiliation: ['employee'],
|
|
138
138
|
displayName: 'Ansatt',
|
|
139
139
|
},
|
|
140
140
|
go_type_displayName: 'undervisningsgruppe',
|
|
@@ -228,7 +228,7 @@ describe('parseUserObject', () => {
|
|
|
228
228
|
parent: 'fc:org:spusers.feide.no:unit:NO856326501',
|
|
229
229
|
membership: {
|
|
230
230
|
basic: 'member',
|
|
231
|
-
affiliation: 'employee',
|
|
231
|
+
affiliation: ['employee'],
|
|
232
232
|
displayName: 'Ansatt',
|
|
233
233
|
},
|
|
234
234
|
go_type_displayName: 'basisgruppe',
|
|
@@ -245,7 +245,7 @@ describe('parseUserObject', () => {
|
|
|
245
245
|
parent: 'fc:org:spusers.feide.no:unit:NO856326501',
|
|
246
246
|
membership: {
|
|
247
247
|
basic: 'member',
|
|
248
|
-
affiliation: 'employee',
|
|
248
|
+
affiliation: ['employee'],
|
|
249
249
|
displayName: 'Ansatt',
|
|
250
250
|
},
|
|
251
251
|
go_type_displayName: 'undervisningsgruppe',
|
|
@@ -264,7 +264,7 @@ describe('parseUserObject', () => {
|
|
|
264
264
|
parent: 'fc:org:spusers.feide.no:unit:NO856326501',
|
|
265
265
|
membership: {
|
|
266
266
|
basic: 'member',
|
|
267
|
-
affiliation: 'employee',
|
|
267
|
+
affiliation: ['employee'],
|
|
268
268
|
displayName: 'Ansatt',
|
|
269
269
|
},
|
|
270
270
|
go_type_displayName: 'undervisningsgruppe',
|
|
@@ -285,7 +285,7 @@ describe('parseUserObject', () => {
|
|
|
285
285
|
parent: 'fc:org:spusers.feide.no:unit:NO856326501',
|
|
286
286
|
membership: {
|
|
287
287
|
basic: 'member',
|
|
288
|
-
affiliation: 'employee',
|
|
288
|
+
affiliation: ['employee'],
|
|
289
289
|
displayName: 'Ansatt',
|
|
290
290
|
},
|
|
291
291
|
go_type_displayName: 'other groups',
|
|
@@ -300,7 +300,7 @@ describe('parseUserObject', () => {
|
|
|
300
300
|
parent: 'fc:org:spusers.feide.no:unit:NO856326501',
|
|
301
301
|
membership: {
|
|
302
302
|
basic: 'member',
|
|
303
|
-
affiliation: 'employee',
|
|
303
|
+
affiliation: ['employee'],
|
|
304
304
|
displayName: 'Ansatt',
|
|
305
305
|
},
|
|
306
306
|
go_type_displayName: 'other groups',
|
package/src/User/apiTypes.ts
CHANGED
|
@@ -13,11 +13,11 @@ type OrgType =
|
|
|
13
13
|
| 'upper_secondary'
|
|
14
14
|
| 'upper_secondary_owner';
|
|
15
15
|
|
|
16
|
-
type AffiliationType = 'member' | 'student' | 'faculty' | 'staff' | 'affiliate' | 'employee';
|
|
16
|
+
export type AffiliationType = 'member' | 'student' | 'faculty' | 'staff' | 'affiliate' | 'employee';
|
|
17
17
|
|
|
18
18
|
export interface FeideMembershipType {
|
|
19
19
|
basic: 'member' | 'admin' | 'owner'; // Basic membership role of user.
|
|
20
|
-
affiliation?: AffiliationType[]
|
|
20
|
+
affiliation?: AffiliationType[];
|
|
21
21
|
primarySchool?: boolean;
|
|
22
22
|
primaryAffiliation?: AffiliationType;
|
|
23
23
|
displayName?: string;
|
|
@@ -65,7 +65,7 @@ export type FeideGroup = FeideOrg | FeideGoGroup | FeideGrep;
|
|
|
65
65
|
export interface FeideUser {
|
|
66
66
|
cn: string[];
|
|
67
67
|
displayName: string;
|
|
68
|
-
eduPersonAffiliation: AffiliationType[]
|
|
68
|
+
eduPersonAffiliation: AffiliationType[];
|
|
69
69
|
eduPersonPrimaryAffiliation: string;
|
|
70
70
|
eduPersonPrincipalName: string;
|
|
71
71
|
givenName: string[];
|
|
@@ -335,7 +335,7 @@ const messages = {
|
|
|
335
335
|
multidisciplinarySubjects: 'Multidisciplinary subjects',
|
|
336
336
|
toolboxStudents: 'Toolbox - for students',
|
|
337
337
|
toolboxTeachers: 'Toolbox - for teachers',
|
|
338
|
-
film: 'NDLA
|
|
338
|
+
film: 'NDLA film',
|
|
339
339
|
about: {
|
|
340
340
|
title: 'About NDLA',
|
|
341
341
|
numbers: 'Numbers and reports',
|
|
@@ -793,7 +793,7 @@ const messages = {
|
|
|
793
793
|
loadingMovies: 'Loading movies..',
|
|
794
794
|
subjectsInMovies: 'Subjects in film',
|
|
795
795
|
about: {
|
|
796
|
-
heading: 'About NDLA
|
|
796
|
+
heading: 'About NDLA film',
|
|
797
797
|
more: 'Read more about NDLA film',
|
|
798
798
|
text: 'Ndla film er ei nettbasert filmtjeneste for elever og lærere i videregående skole. Her finn du spillefilmer, kortfilmer, dokumentarfilmer og TV-serier.',
|
|
799
799
|
},
|
|
@@ -835,7 +835,7 @@ const messages = {
|
|
|
835
835
|
},
|
|
836
836
|
allMovieGroupTitleLabel: 'Movies starting with {{letter}}',
|
|
837
837
|
moreAboutNdlaFilm: {
|
|
838
|
-
header: 'NDLA
|
|
838
|
+
header: 'NDLA film',
|
|
839
839
|
firstParagraph:
|
|
840
840
|
"The films in the film service are taken from Norwegian and international film heritage and are linked to curricula in several subjects. They have been selected by NDLA's editors in collaboration with Norgesfilm AS.",
|
|
841
841
|
secondParagraph:
|
|
@@ -334,7 +334,7 @@ const messages = {
|
|
|
334
334
|
multidisciplinarySubjects: 'Tverrfaglige tema',
|
|
335
335
|
toolboxStudents: 'Verktøykassa - for elever',
|
|
336
336
|
toolboxTeachers: 'Verktøykassa - for lærere',
|
|
337
|
-
film: 'NDLA
|
|
337
|
+
film: 'NDLA film',
|
|
338
338
|
about: {
|
|
339
339
|
title: 'Om NDLA',
|
|
340
340
|
numbers: 'Tall og rapporter',
|
|
@@ -792,7 +792,7 @@ const messages = {
|
|
|
792
792
|
loadingMovies: 'Henter filmer...',
|
|
793
793
|
subjectsInMovies: 'Emner i film',
|
|
794
794
|
about: {
|
|
795
|
-
heading: 'Om NDLA
|
|
795
|
+
heading: 'Om NDLA film',
|
|
796
796
|
more: 'Les mer om NDLA film',
|
|
797
797
|
text: 'Ndla film er en nettbasert filmtjeneste for elever og lærere i videregående skole. Her funner du spillefilmer, kortfilmer, dokumentarfilmer og TV-serier.',
|
|
798
798
|
},
|
|
@@ -834,7 +834,7 @@ const messages = {
|
|
|
834
834
|
},
|
|
835
835
|
allMovieGroupTitleLabel: 'Filmer som starter på {{letter}}',
|
|
836
836
|
moreAboutNdlaFilm: {
|
|
837
|
-
header: 'NDLA
|
|
837
|
+
header: 'NDLA film',
|
|
838
838
|
firstParagraph:
|
|
839
839
|
'Filmene i filmtjenesten er hentet fra norsk og internasjonal filmarv og kobles mot læreplaner i flere fag. De er valgt ut av NDLAs redaksjoner i samarbeid med Norgesfilm AS.',
|
|
840
840
|
secondParagraph:
|
|
@@ -334,7 +334,7 @@ const messages = {
|
|
|
334
334
|
multidisciplinarySubjects: 'Tverrfaglege tema',
|
|
335
335
|
toolboxStudents: 'Verktøykassa - for elevar',
|
|
336
336
|
toolboxTeachers: 'Verktøykassa - for lærarar',
|
|
337
|
-
film: 'NDLA
|
|
337
|
+
film: 'NDLA film',
|
|
338
338
|
about: {
|
|
339
339
|
title: 'Om NDLA',
|
|
340
340
|
numbers: 'Tall og rapporter',
|
|
@@ -792,7 +792,7 @@ const messages = {
|
|
|
792
792
|
loadingMovies: 'Hentar filmar...',
|
|
793
793
|
subjectsInMovies: 'Emne i film',
|
|
794
794
|
about: {
|
|
795
|
-
heading: 'Om NDLA
|
|
795
|
+
heading: 'Om NDLA film',
|
|
796
796
|
more: 'Les meir om NDLA film',
|
|
797
797
|
text: 'NDLA film er ei nettbasert filmteneste for elevar og lærarar i vidaregåande skule. Her finn du spelefilmar, kortfilmar, dokumentarfilmar og TV-seriar.',
|
|
798
798
|
},
|
|
@@ -834,7 +834,7 @@ const messages = {
|
|
|
834
834
|
},
|
|
835
835
|
allMovieGroupTitleLabel: 'Filmar som startar på {{letter}}',
|
|
836
836
|
moreAboutNdlaFilm: {
|
|
837
|
-
header: 'NDLA
|
|
837
|
+
header: 'NDLA film',
|
|
838
838
|
firstParagraph:
|
|
839
839
|
'Filmane i filmtenesta er henta frå norsk og internasjonal filmarv og er kopla mot læreplanar i fleire fag. Dei er valde av redaksjonane til NDLA i samarbeid med Norgesfilm AS.',
|
|
840
840
|
secondParagraph:
|
|
@@ -311,8 +311,8 @@ const messages = {
|
|
|
311
311
|
},
|
|
312
312
|
errorDescription: 'Gaatesjen, fiejlie sjïdti faage-veedtjemisnie.',
|
|
313
313
|
film: {
|
|
314
|
-
header: 'NDLA
|
|
315
|
-
text: 'NDLA
|
|
314
|
+
header: 'NDLA film',
|
|
315
|
+
text: 'NDLA film lea dïenesje laavenjostosne Norgesfilmine. Dïenesje baaja datnem gellie spïelefilmh, åenehks filmh, dokumentaarh jïh raajroeh vuejnedh. Maahtah aaj ööhpehtimmiefilmh jïh filmebietskieh vuejnedh. Buerie båeteme filmen veartenen sïjse!',
|
|
316
316
|
textShort: 'Buerie båeteme filmen veartenasse!',
|
|
317
317
|
linkLabel: 'Mïnnh NDLA filmese',
|
|
318
318
|
},
|
|
@@ -334,7 +334,7 @@ const messages = {
|
|
|
334
334
|
multidisciplinarySubjects: 'Tverrfaglege tema',
|
|
335
335
|
toolboxStudents: 'Verktøykassa - for elever',
|
|
336
336
|
toolboxTeachers: 'Verktøykassa - for lærere',
|
|
337
|
-
film: 'NDLA
|
|
337
|
+
film: 'NDLA film',
|
|
338
338
|
about: {
|
|
339
339
|
title: 'Om NDLA',
|
|
340
340
|
numbers: 'Tall og rapporter',
|
|
@@ -789,15 +789,15 @@ const messages = {
|
|
|
789
789
|
copyCode: 'Vaeltieh kopijem kodeste bietskiedimmietaavlese',
|
|
790
790
|
},
|
|
791
791
|
ndlaFilm: {
|
|
792
|
-
heading: 'NDLA
|
|
792
|
+
heading: 'NDLA filmen',
|
|
793
793
|
slideBackwardsLabel: 'Scroll bååstede',
|
|
794
794
|
slideForwardsLabel: 'Scroll åvtese',
|
|
795
795
|
movieMatchInCategory: 'Gaavnoeh',
|
|
796
796
|
loadingMovies: 'Filmh veedtjeminie...',
|
|
797
797
|
subjectsInMovies: 'Teemah filmesne',
|
|
798
798
|
about: {
|
|
799
|
-
heading: 'NDLA
|
|
800
|
-
more: 'Lohkh vielie NDLA
|
|
799
|
+
heading: 'NDLA filmen bïjre',
|
|
800
|
+
more: 'Lohkh vielie NDLA filmen bïjre',
|
|
801
801
|
text: 'Ndla Film lea filmedïenesje nedtesne learoehkidie jïh lohkehtæjjide jåarhkeskuvlesne. Daesnie spïelefilmh, åenehks filmh, dokumentaarefilmh jïh TV-raajroh gaavnh.',
|
|
802
802
|
},
|
|
803
803
|
search: {
|
|
@@ -838,7 +838,7 @@ const messages = {
|
|
|
838
838
|
},
|
|
839
839
|
allMovieGroupTitleLabel: 'Filmar som startar på {{letter}}',
|
|
840
840
|
moreAboutNdlaFilm: {
|
|
841
|
-
header: 'NDLA
|
|
841
|
+
header: 'NDLA film',
|
|
842
842
|
firstParagraph:
|
|
843
843
|
'Filmh, filmedïenesjisnie, leah nöörjen jïh gaskenasjonaale filme-aerpeste veedtjeme, jïh learoesoejkesjidie ektiedamme jieniebinie faagine. NDLA:n redaksjovnh jïh Norgesfilm AS leah dejtie ektesne veeljeme.',
|
|
844
844
|
secondParagraph:
|