Commit 0b45158
feat: WC-274 component can opt for CMS styles (#1127)
* feat: WC-219 isolate external styles for component
* fix: WC-219 change hook ext from jsx to js
* fix: WC-219 fix hot reload error, add test
The testing might be overkill. It passed before the fix was added.
* refactor: WC-219 organize code more cleanly
to help in debugging solution to hot reload error in dev
* refactor: WC-219 change solution from DOM to CSS
KNOWN ISSUES: Does not make CMS content look exactly correct.
* chore: WC-219 remove cruft
* feat: WC-219 hide navbar, simplify cms content CSS
KNOWN ISSUE: CMS content still does not render perfect.
* feat: WC-219 match test CMS content perfectly
* chore: WC-219 delete shadow dom attempt
* refactor: WC-219 rename files
* fix: WC-219 missing part of "rename files" commit
* chore: WC-219 delete outdated import
* fix: WC-219 attrname vs attrName in JSX
* fix: WC-219 file accidentally deleted
* refactor: WC-219 extract breadcrumbs
* fix: header styles overwritten by mimic-cms styles
* fix: basic text color too dark
cuz it is using portal basic text color instead of cms basic text color
* feat!: footer from CMS
TO DO:
- Make footer conditional.
- Fix footer position.
BREAKING CHANGE: Footer always shown. Footer position is wrong.
* refactor: cms-footer ID changed to just footer
* chore: remove unused class
* feat: only load CMS footer when necessary
* docs: "make CMS styles conditional like … footer"
* feat: "make CMS styles conditional like … footer"
TODO:
- reduce redundant code
* docs: delete "make CMS styles conditional …"
* fix: move DataFiles CSS back to DataFiles
* refactor: simplify cms_styles.html
* fix: cms_styles not disabled
The style does not support disabled attribute.
AI suggested media attribute. Unexpected, but sensible.
* chore: restore new line
* chore: simplify DataFiles…Breadcrumbs
* refactor: CMSWrapper
* refactor: clean up so DPM usage is clearer
* chore: use `latest` cms image again
v4.31.0 (latest) includes the new feature
* fix: does not match CMS UI exactly
Return CMS code to after <head>, which React/Vite appends with CSS that cms_styles must overwrite.
* refactor cms_styles → cms_ui
* chore: npm prettier--write client
* chore: npm run lint:css
* fix: footer on CMS layout
* chore: remove duplicate code
* chore: remove stray `async` keyword
* fix: CMS footer present upon return to regular Portal
* fix: DataFilesForDPM.global.css bleed
* feat: CMSWrapper useDynamicStylesheets
* refactor: move <main> to CMSWrapper only
* chore: npm prettier --write client
* docs: remove pagination comment
* chore: comment format
* test: other sample content
* feat: navigate sample content
* fix: remove tab-content/pane styles
* fix: image url and attr whitepsace
* fix: whtiespace between HTML tags for DPMRead
* chore: npm prettier --write client
* fix: misaligned image in <div> missing `container`
Also added on design:
- https://pprd.digitalrocks.tacc.utexas.edu/datasets/317/
- https://pprd.digitalrocks.tacc.utexas.edu/datasets/218/
* fix: wrong markup for heading
Also fixed in design:
- https://pprd.digitalrocks.tacc.utexas.edu/datasets/317/
- https://pprd.digitalrocks.tacc.utexas.edu/datasets/218/
* fix: nested container alignement
mimics a CMS idiosyncrasy
* chore: npm prettier --write client
* fix: missing spaces
* fix: misaligned nested container
* fix: poetry lock
* fix: do not import s-footer twice
core-styles.cms.css provides it
* fix: mirror TACC/Core-CMS-Custom#494 updates
TACC/Core-CMS-Custom#494
And those updates made to templates on PPRD DigitalRocks.
* deps: Core-Styles v2.45
* enhance: migrate styles from CDN to here
* refactor: reorg styles so CMS can load 'em cleanly
* chore: use latest corestyles, if used via CDN
* chore: core-cms v4.33 via latest
* fix: manually revert unintentional change
probably related to task.digital-rocks being behind main
* Revert "fix: manually revert unintentional change"
This reverts commit 90890d2.
* fix: condifently revert unintentional changes
probably related to task.digital-rocks being behind main
* fix: delete stray file
probably related to task.digital-rocks being behind main
* fix: inaccurate href value
* fix: modals, dropdowns, tabs (new bootstrap, v5)
Bootstrap v5 changes `data-` attributes for these features.
Modals and Dropdowns require new naming.
* fix: missing modals data- attr update
Related to previous commit
* chore: remove `data-tag-change-from` attributes
These are cruft from CMS script that changes HTML elements which Django CMS did not allow me to put in a snippet.
* fix: tooltips
* fix: modal content styles
* fix: limit portal modal content styles to portal
* fix: dropdown styles
* refactor: delete sample components + their styles
---------
Co-authored-by: Shayan Khan <skhan@tacc.utexas.edu>1 parent b49edd2 commit 0b45158
14 files changed
Lines changed: 195 additions & 31 deletions
File tree
- client
- src
- components/_common
- CMSBreadcrumbs
- CMSWrapper
- styles
- components
- settings
- server/portal/templates
- includes
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
55 | | - | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | | - | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
0 commit comments