Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
6da68c6
fix observable next() argument for rxjs 7 (#1445)
sheepyhollow Apr 19, 2022
71c8a19
Planty pre-release (#1543)
lthuong Jun 1, 2022
9a842aa
Bump Version to 2.8.2
sheepyhollow Jun 1, 2022
8de6a48
Planty Pre-Release (#1563)
lthuong Jun 19, 2022
c26e138
Bump rxjs from 6.6.7 to 7.5.5 (#1443)
dependabot[bot] Jun 20, 2022
1910880
Bump ng-packagr from 13.3.0 to 13.3.1 (#1509)
dependabot[bot] Jun 20, 2022
56b2710
Bump ejs from 3.1.6 to 3.1.8 (#1545)
dependabot[bot] Jun 20, 2022
021bebb
Bump jasmine-core from 4.0.1 to 4.2.0 (#1555)
dependabot[bot] Jun 20, 2022
3276a6b
Bump karma from 6.3.17 to 6.4.0 (#1561)
dependabot[bot] Jun 20, 2022
6dd9af2
Bump zone.js from 0.11.5 to 0.11.6 (#1569)
dependabot[bot] Jun 20, 2022
7930d75
Bump @storybook/builder-webpack5 from 6.4.21 to 6.5.9 (#1572)
dependabot[bot] Jun 20, 2022
c9aca37
bump version to 2.8.3
sheepyhollow Jun 20, 2022
90e090e
Bump @typescript-eslint/eslint-plugin from 5.18.0 to 5.29.0 (#1571)
dependabot[bot] Jun 20, 2022
d5246c3
Bump git-describe from 4.1.0 to 4.1.1 (#1576)
dependabot[bot] Jun 20, 2022
4e8c9c5
Bump @types/node from 17.0.23 to 18.0.0 (#1578)
dependabot[bot] Jun 20, 2022
26d9770
Bump postcss from 8.4.12 to 8.4.14 (#1573)
dependabot[bot] Jun 20, 2022
8c11713
Bump @angular-eslint/eslint-plugin from 13.2.0 to 13.5.0 (#1575)
dependabot[bot] Jun 20, 2022
3b6f32c
Bump karma-jasmine from 4.0.2 to 5.1.0 (#1566)
dependabot[bot] Jun 20, 2022
6094342
Bump eslint from 8.13.0 to 8.18.0 (#1577)
dependabot[bot] Jun 20, 2022
af6b328
Bump fs-extra from 10.0.1 to 10.1.0 (#1579)
dependabot[bot] Jun 20, 2022
aad2571
Bump markdown-it from 12.3.2 to 13.0.1 (#1580)
dependabot[bot] Jun 20, 2022
525b692
Bump ts-node from 10.7.0 to 10.8.1 (#1581)
dependabot[bot] Jun 20, 2022
2b82064
Bump @angular-eslint/eslint-plugin-template from 13.2.0 to 13.5.0 (#1…
dependabot[bot] Jun 20, 2022
5718743
Bump jasmine and @types/jasmine (#1570)
dependabot[bot] Jun 20, 2022
842fb71
Bump @storybook/manager-webpack5 from 6.4.21 to 6.5.9 (#1583)
dependabot[bot] Jun 20, 2022
b8a2278
Bump karma-jasmine-html-reporter from 1.7.0 to 2.0.0 (#1591)
dependabot[bot] Jun 20, 2022
3df73a4
Bump core-js from 3.21.1 to 3.23.2 (#1592)
dependabot[bot] Jun 20, 2022
6375246
Bump @ngxs/store from 3.7.3 to 3.7.4 (#1589)
dependabot[bot] Jun 20, 2022
9de3b6a
Bump prettier from 2.6.2 to 2.7.1 (#1585)
dependabot[bot] Jun 20, 2022
c58b4f7
Bump @angular-eslint/template-parser from 13.2.0 to 13.5.0 (#1584)
dependabot[bot] Jun 20, 2022
2e07071
Bump jest-preset-angular from 11.1.1 to 11.1.2 (#1586)
dependabot[bot] Jun 20, 2022
3051030
Bump tslib from 2.3.1 to 2.4.0 (#1594)
dependabot[bot] Jun 20, 2022
c89f5dd
Bump @sentry/angular from 6.19.6 to 7.2.0 (#1587)
dependabot[bot] Jun 20, 2022
f5531c7
Bump postcss-preset-env from 7.4.3 to 7.7.1 (#1590)
dependabot[bot] Jun 20, 2022
ef59006
Bump material-icons from 1.10.8 to 1.11.2 (#1593)
dependabot[bot] Jun 20, 2022
fcc41a2
Bump @ngxs/devtools-plugin from 3.7.3 to 3.7.4 (#1597)
dependabot[bot] Jun 21, 2022
f178b9e
Bump @ngxs/router-plugin from 3.7.3 to 3.7.4 (#1598)
dependabot[bot] Jun 21, 2022
d1368e5
Revert "Bump @ngxs/router-plugin from 3.7.3 to 3.7.4 (#1598)"
sheepyhollow Jun 23, 2022
e06a4f8
Revert "Bump @ngxs/devtools-plugin from 3.7.3 to 3.7.4 (#1597)"
sheepyhollow Jun 23, 2022
af04e34
Guided Tour Patches (#1508)
lthuong Jun 24, 2022
6add42e
Bump postcss-preset-env from 7.7.1 to 7.7.2 (#1604)
dependabot[bot] Jun 24, 2022
466aca5
Bump canvas from 2.9.1 to 2.9.2 (#1603)
dependabot[bot] Jun 24, 2022
9df3669
Downgrade sentry & hotfix landing page issue (#1612)
sheepyhollow Jun 28, 2022
289d534
Merge branch 'master' into dev
sheepyhollow Jun 28, 2022
d1f2eb8
Sort Messages (#1618)
sheepyhollow Jun 29, 2022
22784b5
bump version to 2.8.5
sheepyhollow Jun 29, 2022
9e1ec5d
Merge branch 'master' into dev
sheepyhollow Jun 29, 2022
f4c0e49
Quiz Overhaul (#1520)
lthuong Jul 11, 2022
be58a5b
New slideshow with new endpoint incl. deeplinks (#1478)
devent-kn Jul 11, 2022
0029123
Update Angular 14 (3) (#1734)
lthuong Oct 24, 2022
d5a3e7e
Bb/quiz patches (#1641)
sheepyhollow Oct 24, 2022
09414b1
Build Patch (#1737)
lthuong Oct 24, 2022
1cf6f49
Neue App Wabe (#1750)
lthuong Nov 19, 2022
ce86c18
Solid version 3.0 (#1757)
lthuong Jan 3, 2023
fb1e0da
WABE OpenAPI 3.0 for Formatting (#1858)
lthuong Feb 28, 2023
e6aa242
Bump version
sheepyhollow Feb 28, 2023
5e92f73
bum version and Merge branch 'master' into dev
sheepyhollow Mar 3, 2023
1657cbf
reset Version
sheepyhollow Mar 3, 2023
a7abffe
update actions to deploy planty staging
sheepyhollow Mar 4, 2023
aee106b
Fix some Quiz issues (#1870)
sheepyhollow Mar 7, 2023
8c13508
Startseite overhaul (#1775)
lthuong Mar 8, 2023
86380b8
Bump version to 3.5.0
sheepyhollow Mar 8, 2023
4d069be
Update GitHub Actions (#1878)
lthuong Jul 10, 2023
4d8c987
Styling Issues (#1877)
lthuong Jul 10, 2023
050109c
Multi Profiles (#1876)
lthuong Jul 10, 2023
8221285
Bump semver from 5.7.1 to 5.7.2 (#1882)
dependabot[bot] Jul 10, 2023
f90e4c8
Bump @swc/core from 1.3.9 to 1.3.38 (#1875)
dependabot[bot] Jul 10, 2023
bd71a14
Bump @types/node from 16.11.7 to 18.14.6 (#1872)
dependabot[bot] Jul 10, 2023
4f64824
Bump eslint from 8.15.0 to 8.35.0 (#1859)
dependabot[bot] Jul 10, 2023
56b0223
Bump http-cache-semantics from 4.1.0 to 4.1.1 (#1845)
dependabot[bot] Jul 10, 2023
83aa6ce
Bump postcss-preset-env from 7.5.0 to 8.0.1 (#1839)
dependabot[bot] Jul 10, 2023
9ae5a86
Bump jszip from 3.7.1 to 3.10.1 (#1843)
dependabot[bot] Jul 10, 2023
30e1212
Bump json5 from 1.0.1 to 1.0.2 (#1819)
dependabot[bot] Jul 10, 2023
f5f7182
Bump decode-uri-component from 0.2.0 to 0.2.2 (#1793)
dependabot[bot] Jul 10, 2023
0a53330
Bump ua-parser-js from 0.7.31 to 0.7.33 (#1836)
dependabot[bot] Jul 10, 2023
c73c78b
Bump jasmine-core from 4.2.0 to 4.6.0 (#1881)
dependabot[bot] Jul 10, 2023
f791305
Bump socket.io-parser from 4.0.4 to 4.0.5 (#1763)
dependabot[bot] Jul 10, 2023
ecf16ba
Multi-profiles fixes (#1909)
lthuong Aug 2, 2023
855c799
Bump deep-object-diff from 1.1.7 to 1.1.9 (#1769)
dependabot[bot] Aug 7, 2023
99de6f6
Bump fs-extra and @types/fs-extra (#1892)
dependabot[bot] Aug 7, 2023
c10d173
Bump material-icons from 1.12.0 to 1.13.9 (#1908)
dependabot[bot] Aug 7, 2023
ef5c61c
Bump word-wrap from 1.2.3 to 1.2.4 (#1905)
dependabot[bot] Aug 7, 2023
848d20a
Bump jest-environment-jsdom from 28.1.1 to 29.6.2 (#1914)
dependabot[bot] Aug 7, 2023
79507f3
Bump @typescript-eslint/eslint-plugin from 5.40.1 to 5.62.0 (#1887)
dependabot[bot] Aug 7, 2023
48e1d39
Bump ng-packagr from 14.2.1 to 14.2.2 (#1743)
dependabot[bot] Aug 7, 2023
51abda2
Bump eslint-plugin-cypress from 2.12.1 to 2.13.3 (#1888)
dependabot[bot] Aug 7, 2023
bf3cfe4
Bump jasmine from 4.2.1 to 5.1.0 (#1912)
dependabot[bot] Aug 7, 2023
5906383
Bump postcss-import from 14.1.0 to 15.1.0 (#1796)
dependabot[bot] Aug 7, 2023
0d7aef3
fixes #1899
sheepyhollow Aug 7, 2023
eb80e5c
bump version to 4.1.0
sheepyhollow Aug 7, 2023
6276f3b
Merge branch 'master' into dev
sheepyhollow Aug 7, 2023
aa7fc07
Planty design issues (#1926)
lthuong Sep 10, 2023
e55e266
Fix bugs (#1928)
lthuong Sep 10, 2023
9727d26
Enhance Enum-Workaround (#1959)
sheepyhollow Sep 10, 2023
be2d168
Change profile's tree size (#1968)
lthuong Sep 29, 2023
f4f1900
Message list refactoring (#1972)
lthuong Sep 29, 2023
07cab74
add geomat to dev auto-deploy (#2001)
sheepyhollow Nov 3, 2023
d8a31e2
Bb/mineralcompound fix 1 (#2005)
sheepyhollow Jan 11, 2024
9bcf405
Bb/mineralcompound fix 2 (#2006)
sheepyhollow Jan 12, 2024
6f4bf04
bump Version to 4.2.0
sheepyhollow Jan 12, 2024
23d55f0
Merge branch 'master' into dev
sheepyhollow Jan 12, 2024
cbb760d
Bb/profile position fix (#2011)
sheepyhollow Mar 25, 2024
bdbf9a1
Bump @storybook/core-server from 6.4.22 to 7.5.2 (#1998)
dependabot[bot] Mar 25, 2024
920cc00
Bump @angular-eslint/eslint-plugin from 14.0.4 to 16.2.0 (#1966)
dependabot[bot] Mar 25, 2024
3670202
Bump @adobe/css-tools from 4.0.1 to 4.3.1 (#1946)
dependabot[bot] Mar 25, 2024
15c2104
Bump karma-coverage from 2.2.0 to 2.2.1 (#1921)
dependabot[bot] Mar 25, 2024
6835342
Bump @babel/traverse from 7.16.5 to 7.24.1 (#2017)
dependabot[bot] Mar 25, 2024
d04b718
Bump browserify-sign from 4.2.1 to 4.2.3 (#2016)
dependabot[bot] Mar 25, 2024
a23cd8d
Bump follow-redirects from 1.14.8 to 1.15.6 (#2015)
dependabot[bot] Mar 25, 2024
8d486ee
Bump ip from 2.0.0 to 2.0.1 (#2012)
dependabot[bot] Mar 25, 2024
d6f7450
Bump postcss from 8.4.18 to 8.4.31 (#1983)
dependabot[bot] Mar 25, 2024
1d03fe4
Bump @adobe/css-tools from 4.0.1 to 4.3.3 (#2013)
dependabot[bot] Mar 25, 2024
49b7dab
Bump axios from 1.1.3 to 1.6.8 (#2014)
dependabot[bot] Mar 25, 2024
8082e5a
Lkr/update angular 16 (#2066)
Lisakarolina Jan 15, 2025
80c1e85
Lkr/update angular 16 (#2068)
Lisakarolina Jan 15, 2025
997bd36
Lkr/update angular 16 (#2069)
Lisakarolina Jan 15, 2025
f6b1398
Lkr/update angular 16 (#2070)
sheepyhollow Jan 16, 2025
143eeb8
Lkr/update angular 16 (#2071)
sheepyhollow Jan 17, 2025
f0b1b56
Lkr/update angular 16 (#2073)
sheepyhollow Jan 18, 2025
f2992fd
increment scp action timeout
sheepyhollow Jan 18, 2025
35a0d14
upgrade scp-action to v0.1.7 again
sheepyhollow Jan 18, 2025
225f721
set sleep action to bypass rate limit
sheepyhollow Jan 18, 2025
a162c49
Ia/visual audio description (#2076)
imtiaz2564 Apr 2, 2025
efdf148
ia/unit quiz range question (#2082)
imtiaz2564 Apr 15, 2025
07eceb0
Merge branch 'master' of https://github.com/zentrumnawi/solid-fronten…
sheepyhollow Apr 16, 2025
7ab9d4c
Change deploy order
sheepyhollow Apr 16, 2025
029700e
Merge branch 'master' of https://github.com/zentrumnawi/solid-fronten…
sheepyhollow Apr 16, 2025
561b2cd
Merge branch 'dev' of https://github.com/zentrumnawi/solid-frontend i…
sheepyhollow Apr 16, 2025
c519c87
Update version
Lisakarolina Apr 19, 2025
55e64b1
Correct version
Lisakarolina Apr 19, 2025
48f329e
Lkr/guided profile tour 2079 (#2080)
Lisakarolina Apr 19, 2025
76162c8
Revert "Lkr/guided profile tour 2079 (#2080)"
Lisakarolina Apr 20, 2025
5c038a3
Revert version
Lisakarolina Apr 20, 2025
0bae881
Reapply "Lkr/guided profile tour 2079 (#2080)"
Lisakarolina Apr 20, 2025
73feb67
New version for next release
Lisakarolina Apr 20, 2025
78daf40
Change deploy order
Lisakarolina Apr 20, 2025
1fa9322
Merge branch 'master' into dev
Lisakarolina Apr 20, 2025
4e4defa
Ia/skip true false question (#2087)
imtiaz2564 Apr 26, 2025
1aac159
Cut ssh connection between deployments to force new connection
Lisakarolina May 13, 2025
1ecda77
Revert "Cut ssh connection between deployments to force new connection"
Lisakarolina May 14, 2025
13d5fcb
remove info icon from grid view (#2088)
imtiaz2564 May 19, 2025
1e3b43a
Change deploy order
Lisakarolina Jun 3, 2025
f68c35a
Lkr/load flat nodes separately (#2091)
Lisakarolina Jun 3, 2025
3c63aa8
Increment major version
Lisakarolina Jun 3, 2025
2334dfd
Lkr/revert use of new endpoint (#2093)
Lisakarolina Jun 3, 2025
cf7b32d
Merge branch 'master' into dev
Lisakarolina Jun 3, 2025
0d5f78a
Revert "Merge branch 'master' into dev"
Lisakarolina Jun 3, 2025
650e20a
delete action load-flat-profiles (#2097)
Lisakarolina Jun 3, 2025
5a915c7
Merge branch 'master' into dev
Lisakarolina Jun 3, 2025
a73e764
Purge load-flat-nodes entirely
Lisakarolina Jun 3, 2025
ca88fbb
added scrollbar in glosaary (#2098)
imtiaz2564 Jun 10, 2025
7aa0f78
Add workaround for inconsistent profile data (#2100)
Lisakarolina Jun 17, 2025
638d345
Switch deploy order
Lisakarolina Jun 17, 2025
3d038cb
Lkr/get search results from backend (#2101)
Lisakarolina Jun 20, 2025
f457c6f
Switch deploy order
Lisakarolina Jun 20, 2025
6249727
Merge branch 'master' into dev
Lisakarolina Jul 6, 2025
acd6b26
Slightly reformat
Lisakarolina Jul 6, 2025
5653ee8
Update package.json
imtiaz2564 Jul 6, 2025
cc01c2e
Lkr/adjust profile tour wabe (#2106)
Lisakarolina Jul 26, 2025
3de33d4
Feature/partially correct (#2107)
imtiaz2564 Aug 11, 2025
2ca6d17
Lkr/extend glossary (#2108)
Lisakarolina Sep 1, 2025
151b711
Update package.json
imtiaz2564 Sep 3, 2025
e93f164
Merge remote-tracking branch 'origin/master' into dev
imtiaz2564 Sep 3, 2025
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
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ jobs:
- name: build - staging
run: yarn nx run-many --target=build --all --parallel --configuration=staging

- name: Deploy wabe-staging
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SERVER }}
username: ${{ secrets.USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
rm: true
source: 'dist/apps/wabe'
target: '${{ secrets.WABE_STAGING_DIRECTORY }}'
timeout: 2m
strip_components: 3

- name: Deploy planty-staging
uses: appleboy/scp-action@v0.1.7
with:
Expand Down
7 changes: 6 additions & 1 deletion apps/ais/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
@include solid-core-theme($app-theme);
@include solid-glossary-theme($app-theme);
@include solid-profile-theme($app-theme);
@include solid-quiz-theme($app-theme, $quiz-correct, $quiz-incorrect);
@include solid-quiz-theme(
$app-theme,
$quiz-correct,
$quiz-incorrect,
$quiz-partiallyIncorrect
);
@include solid-skeleton-theme($app-theme);
@include solid-slideshow-theme($app-theme);

Expand Down
1 change: 1 addition & 0 deletions apps/ais/src/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ $app-accent: mat.define-palette($ais-accent, 500);

$quiz-correct: mat.define-palette(mat.$light-green-palette, 600, 200, 600);
$quiz-incorrect: mat.define-palette(mat.$red-palette, 700, 200, 600);
$quiz-partiallyIncorrect: mat.define-palette(mat.$gray-palette, 400, 200, 600);

// The warn palette is optional (defaults to red).
$app-warn: mat.define-palette(mat.$red-palette);
Expand Down
7 changes: 6 additions & 1 deletion apps/dive/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
@include solid-core-theme($app-theme);
@include solid-glossary-theme($app-theme);
@include solid-profile-theme($app-theme);
@include solid-quiz-theme($app-theme, $quiz-correct, $quiz-incorrect);
@include solid-quiz-theme(
$app-theme,
$quiz-correct,
$quiz-incorrect,
$quiz-partiallyIncorrect
);
@include solid-skeleton-theme($app-theme);
@include solid-slideshow-theme($app-theme);

Expand Down
1 change: 1 addition & 0 deletions apps/dive/src/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ $app-accent: mat.define-palette($dive-secondary, 500);

$quiz-correct: mat.define-palette(mat.$light-green-palette, 600, 200, 600);
$quiz-incorrect: mat.define-palette(mat.$red-palette, 700, 200, 600);
$quiz-partiallyIncorrect: mat.define-palette(mat.$gray-palette, 400, 200, 600);

// The warn palette is optional (defaults to red).
$app-warn: mat.define-palette(mat.$red-palette);
Expand Down
7 changes: 6 additions & 1 deletion apps/geomat/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
@include solid-core-theme($app-theme);
@include solid-glossary-theme($app-theme);
@include solid-profile-theme($app-theme);
@include solid-quiz-theme($app-theme, $quiz-correct, $quiz-incorrect);
@include solid-quiz-theme(
$app-theme,
$quiz-correct,
$quiz-incorrect,
$quiz-partiallyIncorrect
);
@include solid-skeleton-theme($app-theme);
@include solid-slideshow-theme($app-theme);

Expand Down
1 change: 1 addition & 0 deletions apps/geomat/src/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ $app-accent: mat.define-palette($geomat-secondary, 400);

$quiz-correct: mat.define-palette(mat.$light-green-palette, 600, 200, 600);
$quiz-incorrect: mat.define-palette(mat.$red-palette, 700, 200, 600);
$quiz-partiallyIncorrect: mat.define-palette(mat.$gray-palette, 400, 200, 600);

// The warn palette is optional (defaults to red).
$app-warn: mat.define-palette(mat.$red-palette);
Expand Down
7 changes: 6 additions & 1 deletion apps/planty/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
@include solid-core-theme($app-theme);
@include solid-glossary-theme($app-theme);
@include solid-profile-theme($app-theme);
@include solid-quiz-theme($app-theme, $quiz-correct, $quiz-incorrect);
@include solid-quiz-theme(
$app-theme,
$quiz-correct,
$quiz-incorrect,
$quiz-partiallyIncorrect
);
@include solid-skeleton-theme($app-theme);
@include solid-slideshow-theme($app-theme);

Expand Down
1 change: 1 addition & 0 deletions apps/planty/src/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ $app-accent: mat.define-palette($planty-accent, 300);

$quiz-correct: mat.define-palette(mat.$light-green-palette, 600, 200, 600);
$quiz-incorrect: mat.define-palette(mat.$red-palette, 700, 200, 600);
$quiz-partiallyIncorrect: mat.define-palette(mat.$gray-palette, 400, 200, 600);

// The warn palette is optional (defaults to red).
$app-warn: mat.define-palette(mat.$red-palette);
Expand Down
1 change: 1 addition & 0 deletions apps/wabe/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ export class AppModule {
addIcon('feedback_outline');
addIcon('assistant');
addIcon('semicorrect');
addIcon('light');
}
}
4 changes: 2 additions & 2 deletions apps/wabe/src/assets/data/guidedTour.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@

"profile": {
"location": {
"treeNode": "/grundwortschatz/tree/1",
"profileTree": "/grundwortschatz/tree/"
"treeNode": "/grundwortschatz/word/1",
"profileTree": "/grundwortschatz/"
},
"steps": [
{
Expand Down
28 changes: 28 additions & 0 deletions apps/wabe/src/assets/svg/light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion apps/wabe/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
@include solid-core-theme($app-theme);
@include solid-glossary-theme($app-theme);
@include solid-profile-theme($app-theme);
@include solid-quiz-theme($app-theme, $quiz-correct, $quiz-incorrect);
@include solid-quiz-theme(
$app-theme,
$quiz-correct,
$quiz-incorrect,
$quiz-partiallyIncorrect
);
@include solid-skeleton-theme($app-theme);
@include solid-slideshow-theme($app-theme);

Expand Down
1 change: 1 addition & 0 deletions apps/wabe/src/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ $app-accent: mat.define-palette($wabe-accent, 500);

$quiz-correct: mat.define-palette(mat.$light-green-palette, 600, 200, 600);
$quiz-incorrect: mat.define-palette(mat.$red-palette, 700, 200, 600);
$quiz-partiallyIncorrect: mat.define-palette(mat.$gray-palette, 400, 200, 600);

// The warn palette is optional (defaults to red).
$app-warn: mat.define-palette(mat.$red-palette);
Expand Down
3 changes: 3 additions & 0 deletions libs/solid/core/src/lib/solid-core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { AudioToolbarComponent } from './components/audio-toolbar/audio-toolbar.
import { AudioIconComponent } from './components/audio-icon/audio-icon.component';
import { MEDIA_DIALOG_TOKEN } from './media-dialog-token';
import { MatTooltipModule } from '@angular/material/tooltip';
import { MatTabsModule } from '@angular/material/tabs';

@NgModule({
declarations: [
Expand All @@ -48,6 +49,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
ScrollingModule,
MatSliderModule,
MatTooltipModule,
MatTabsModule,
],
exports: [
CommonModule,
Expand All @@ -58,6 +60,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
MediaComponent,
ScrollingModule,
MatTooltipModule,
MatTabsModule,
],
providers: [MarkdownService, TitleService],
})
Expand Down
121 changes: 89 additions & 32 deletions libs/solid/glossary/src/lib/components/glossary.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,94 @@
<mat-icon>{{ Filter.value === '' ? 'search' : 'close' }}</mat-icon>
</button>
</mat-form-field>
<div class="scrollable-list">
<mat-list *ngIf="GlossaryEntries | async as state">
<ng-container *ngFor="let kvp of state.sections">
<h3 mat-subeader>{{ kvp[0] }}</h3>
<mat-list-item
*ngFor="let entryId of kvp[1]"
solidGlossaryEntry
[refId]="entryId"
>
<span class="mat-body-strong entry-header" mat-line>{{
state.entries[entryId].term
}}</span>
<div
[data]="state.entries[entryId].text"
markdown
[inline]="true"
mat-line
></div>
<span
class="links"
*ngIf="state.entries[entryId].links.length > 0"
mat-line
>&rarr;<a
(click)="followRef(refId)"
*ngFor="let refId of state.entries[entryId].links; let i = index"

<div class="scrollable-list" *ngIf="GlossaryEntries | async as state">
<!-- Single element case - no tabs needed -->
<ng-container *ngIf="Object.keys(state).length === 1">
<mat-list>
<ng-container *ngFor="let kvp of state['Glossar'].sections">
<h3 mat-subeader>{{ kvp[0] }}</h3>
<mat-list-item
*ngFor="let entryId of kvp[1]"
solidGlossaryEntry
[refId]="entryId"
>
<span class="mat-body-strong entry-header" mat-line>{{
state['Glossar'].entries[entryId].term
}}</span>
<div
[data]="state['Glossar'].entries[entryId].text"
markdown
[inline]="true"
mat-line
></div>
<span
class="links"
*ngIf="state['Glossar'].entries[entryId].links.length > 0"
mat-line
>&rarr;<a
(click)="followRef(refId)"
*ngFor="
let refId of state['Glossar'].entries[entryId].links;
let i = index
"
>
{{ state['Glossar'].entries[refId].term
}}{{
i < state['Glossar'].entries[entryId].links.length - 1
? ','
: ''
}}</a
>
</span>
</mat-list-item>
</ng-container>
</mat-list>
</ng-container>

<!-- Multiple elements case - use tabs -->
<mat-tab-group *ngIf="Object.keys(state).length > 1">
<mat-tab *ngFor="let tab of Object.keys(state)" [label]="tab">
<mat-list>
<ng-container *ngFor="let kvp of state[tab].sections">
<h3 mat-subeader>{{ kvp[0] }}</h3>
<mat-list-item
*ngFor="let entryId of kvp[1]"
solidGlossaryEntry
[refId]="entryId"
>
{{ state.entries[refId].term
}}{{ i < state.entries[entryId].links.length - 1 ? ',' : '' }}</a
>
</span>
</mat-list-item>
</ng-container>
</mat-list>
<span class="mat-body-strong entry-header" mat-line>{{
state[tab].entries[entryId].term
}}</span>
<div
[data]="state[tab].entries[entryId].text"
markdown
[inline]="true"
mat-line
></div>
<span
class="links"
*ngIf="
state[tab].entries[entryId].links.length > 0 &&
tab === 'Glossar'
"
mat-line
>&rarr;<a
(click)="followRef(refId)"
*ngFor="
let refId of state[tab].entries[entryId].links;
let i = index
"
>
{{ state[tab].entries[refId].term
}}{{
i < state[tab].entries[entryId].links.length - 1 ? ',' : ''
}}
</a>
</span>
</mat-list-item>
</ng-container>
</mat-list>
</mat-tab>
</mat-tab-group>
</div>
27 changes: 21 additions & 6 deletions libs/solid/glossary/src/lib/components/glossary.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
import { Select, Store } from '@ngxs/store';
import {
GlossaryEntryModel,
ExtendedGlossaryEntryModel,
GlossaryState,
GlossaryStateModel,

Check warning on line 7 in libs/solid/glossary/src/lib/components/glossary.component.ts

View workflow job for this annotation

GitHub Actions / build

'GlossaryStateModel' is defined but never used
} from '../glossary.state';
import { LoadGLossary } from '../glossary.actions';
import { combineLatest, Observable, Subject } from 'rxjs';
Expand All @@ -22,8 +23,10 @@
@ViewChildren(RefDirective, { read: RefDirective })
public refElements!: QueryList<RefDirective>;
@Select(GlossaryState.state)
public State!: Observable<GlossaryStateModel>;
public GlossaryEntries: Observable<GlossaryStateModel>;
public State!: Observable<ExtendedGlossaryEntryModel>;
public GlossaryEntries: Observable<ExtendedGlossaryEntryModel>;

protected Object = Object;

constructor(store: Store) {
store.dispatch(new LoadGLossary());
Expand All @@ -33,19 +36,24 @@
]).pipe(
map((val) => {
const filterStr: string = (val[0] as string).toLowerCase();
const state = val[1];
const state = { ...val[1] }; // Create a copy of the state to modify

if (filterStr === '') {
return state;
}
const validEntryIds = Object.values(state.entries)

// Only filter the glossary section
const glossaryState = state['Glossar'];
const validEntryIds = Object.values(glossaryState.entries)
.filter((entry: GlossaryEntryModel) => {
return (
entry.term.toLowerCase().includes(filterStr) ||
entry.text.toLowerCase().includes(filterStr)
);
})
.map((entry) => entry.id);
const filteredSections = state.sections

const filteredSections = glossaryState.sections
.filter((section) => {
return section[1].some((id) => validEntryIds.includes(id));
})
Expand All @@ -55,7 +63,14 @@
section[1].filter((id) => validEntryIds.includes(id)),
] as [string, number[]];
});
return { sections: filteredSections, entries: state.entries };

// Update only the glossary section in the state copy
state['Glossar'] = {
sections: filteredSections,
entries: glossaryState.entries,
};

return state;
}),
takeUntil(this.$destroyed),
);
Expand Down
Loading
Loading