Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS style fixes #441

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
321 commits
Select commit Hold shift + click to select a range
b2bcafd
Merge pull request #20 from springload/feature/download-block-fed
liamjohnston May 13, 2024
0793aa5
Pull quote FED
liamjohnston May 14, 2024
a920b5d
Update dom to use figure
liamjohnston May 14, 2024
00f91ec
Merge pull request #21 from springload/feature/pull-quote-fed
liamjohnston May 14, 2024
aa63afc
fixing footer
sarahframe May 14, 2024
67c8165
remove comments
sarahframe May 14, 2024
f7b66b8
fix navigation tags
sarahframe May 14, 2024
6697c8f
update menu to link title
sarahframe May 14, 2024
fbd4c28
Merge remote-tracking branch 'origin' into feature/CDH-1-homepage-blocks
sarahframe May 14, 2024
49853ca
add cta button to secondary nav data
sarahframe May 14, 2024
4179679
adding social links to footer
sarahframe May 14, 2024
8303158
Main nav FED
liamjohnston May 15, 2024
7b33b4a
Remove unneeded CSS and make header html more semantic
liamjohnston May 15, 2024
93a5dec
SVG colour fallbacks, code tidyups
liamjohnston May 15, 2024
c9abf5d
Update typing
liamjohnston May 15, 2024
67687f6
Footer FED
liamjohnston May 16, 2024
30c925c
PR review fixes
liamjohnston May 16, 2024
be80843
Misc FED fixes
liamjohnston May 16, 2024
0d439c2
udpating address field
sarahframe May 16, 2024
f6d63e4
Merge pull request #22 from springload/feature/CDH-1-homepage-blocks
sarahframe May 16, 2024
5c5bfbb
Merge pull request #23 from springload/feature/main-nav-fed
liamjohnston May 16, 2024
6ba2f0f
Merge pull request #24 from springload/feature/footer-fed
liamjohnston May 16, 2024
b0dc758
Remove fonts from repo
liamjohnston May 16, 2024
f2c2dc6
Update gitignore
liamjohnston May 16, 2024
eecdd96
Merge pull request #26 from springload/chore/remove-font-files-from-repo
liamjohnston May 16, 2024
0597e07
Merge pull request #25 from springload/fix/misc-fixes
liamjohnston May 16, 2024
9752e26
Update rich text features
liamjohnston May 16, 2024
e66cce5
Update physical address template variable
liamjohnston May 16, 2024
b433726
Merge pull request #28 from springload/fix/footer-physical-address
liamjohnston May 16, 2024
cd4a91d
Scaffold content page elements
liamjohnston May 19, 2024
1dd372d
PR review fixes
liamjohnston May 19, 2024
ce731ee
Merge pull request #29 from springload/feature/scaffolded-frontend-co…
liamjohnston May 19, 2024
51b2654
Rich text stylings
liamjohnston May 20, 2024
59655ec
remove redundant style, already declared above
liamjohnston May 20, 2024
2b2faa6
remove l1 code.
liamjohnston May 20, 2024
db2f2f0
Rename vars and add comments
liamjohnston May 20, 2024
65db72a
Merge pull request #30 from springload/feature/typographic-spacing
liamjohnston May 20, 2024
fd08cc5
Fix variable names and add template to render text blocks
liamjohnston May 20, 2024
93aee46
Merge pull request #31 from springload/fix/finish-renaming-variables
liamjohnston May 20, 2024
888ce7a
Homepage hero img size
liamjohnston May 20, 2024
6245231
Add search form to main navs
liamjohnston May 20, 2024
13393fe
Merge pull request #32 from springload/fix/home-hero-img-size
liamjohnston May 20, 2024
5301bd4
Redesign note block
liamjohnston May 20, 2024
22a6516
Merge pull request #33 from springload/feature/search-form-component
liamjohnston May 20, 2024
5b4b609
Merge pull request #34 from springload/feature/redesign-note-component
liamjohnston May 20, 2024
5403c75
Newsletter signup form
liamjohnston May 20, 2024
95c06b0
Merge pull request #35 from springload/feature/newsletter-signup-form
liamjohnston May 20, 2024
a5e8adf
Favicons
liamjohnston May 21, 2024
22290f3
Search page
liamjohnston May 21, 2024
0bae5a6
fix wrong breakpoint
liamjohnston May 21, 2024
8fdb0d3
Template shuffling and misc tidyup
liamjohnston May 21, 2024
bba72e7
Sidenav hover states
liamjohnston May 21, 2024
03c5201
Various hover state updates
liamjohnston May 21, 2024
65d7cb0
Improve webpack output
liamjohnston May 21, 2024
1cf9123
adding rich text block
sarahframe May 21, 2024
217ca9b
adding migration files
sarahframe May 21, 2024
824bee3
Merge pull request #27 from springload/feature/edit-rich-text-features
liamjohnston May 21, 2024
2f665ac
adding image block
sarahframe May 21, 2024
4226835
Merge pull request #42 from springload/feature/CDH-1-homepage-blocks
sarahframe May 21, 2024
29213ca
feature block
sarahframe May 22, 2024
688b109
Merge pull request #43 from springload/feature/CDH-1-homepage-blocks
sarahframe May 22, 2024
01abb09
table block
sarahframe May 22, 2024
1594157
newsletter sign up block
sarahframe May 22, 2024
a64df70
Merge pull request #39 from springload/feature/sidenav-hover-state
liamjohnston May 22, 2024
ad3bdd1
Merge pull request #40 from springload/feature/various-hover-state-up…
liamjohnston May 22, 2024
782b03c
Merge pull request #38 from springload/chore/template-shuffling-and-m…
liamjohnston May 22, 2024
f18e479
Move favicons to correct (root) static dir
liamjohnston May 22, 2024
33aab88
Merge pull request #36 from springload/feature/favicons
liamjohnston May 22, 2024
ccd9459
fix template
sarahframe May 22, 2024
ef52943
fix rich text html
sarahframe May 22, 2024
e4a5494
adding jumplink h2 heading from springkit
sarahframe May 22, 2024
1f01d96
Merge pull request #44 from springload/feature/CDH-1-homepage-blocks
sarahframe May 22, 2024
45b849f
Merge pull request #41 from springload/feature/improve-webpack-dist-m…
liamjohnston May 22, 2024
121e202
Update icon name
liamjohnston May 22, 2024
c339386
Merge pull request #37 from springload/feature/search-page
liamjohnston May 22, 2024
6fc4299
Remove blockquote streamfield
liamjohnston May 23, 2024
b4e40fb
removing block quote bed
sarahframe May 23, 2024
8f5901d
Various streamfield spacing and alignment updates
liamjohnston May 23, 2024
e5172ad
adding migration
sarahframe May 23, 2024
053d6e7
Merge pull request #45 from springload/feature/remove-blockquote-comp…
liamjohnston May 23, 2024
db5d06f
updating accordion block
sarahframe May 23, 2024
0b21cd8
Migrated content heading style
liamjohnston May 23, 2024
43bdc21
documentation
liamjohnston May 23, 2024
27a38cf
Merge pull request #46 from springload/feature/streamfield-spacing-up…
liamjohnston May 23, 2024
69d70f3
fixing accordion template
sarahframe May 23, 2024
6682329
fixing accordion template
sarahframe May 23, 2024
2b0af46
Table FED
liamjohnston May 23, 2024
1182c3e
Merge pull request #48 from springload/feature/table-fed
liamjohnston May 23, 2024
b159ebc
adding Bluesky and LinkedIn to social links
sarahframe May 23, 2024
8794245
Merge pull request #47 from springload/feature/CDH-1-homepage-blocks
sarahframe May 23, 2024
4aec7b2
Social link updates
liamjohnston May 23, 2024
31441f2
Updates
liamjohnston May 23, 2024
76b8300
Special button style behaviour
liamjohnston May 23, 2024
6ecd0e1
accordion heading FED updates
liamjohnston May 23, 2024
8a0bcd9
adding size options to image block, updating image on feature block
sarahframe May 23, 2024
bd589fe
Merge pull request #51 from springload/feature/accordion-title-and-de…
liamjohnston May 23, 2024
459f4db
Merge pull request #49 from springload/feature/social-icons-update
liamjohnston May 23, 2024
6383389
updating help text
sarahframe May 24, 2024
406091f
Merge pull request #50 from springload/feature/button-style-special-b…
liamjohnston May 24, 2024
b0d530a
Merge pull request #52 from springload/feature/CDH-1-homepage-blocks
sarahframe May 24, 2024
65fecc0
Feature block FED
liamjohnston May 26, 2024
e09dca0
video block and cdh hosted video block
sarahframe May 27, 2024
c419edc
Merge pull request #54 from springload/feature/CDH-1-homepage-blocks
sarahframe May 27, 2024
97d6b34
Video block FED
liamjohnston May 27, 2024
034d09d
whitespace change
liamjohnston May 27, 2024
5196e8e
Image block FED
liamjohnston May 27, 2024
e5da1ec
Fix blockquote styling double-up
liamjohnston May 27, 2024
afe2dd8
Remove unneeded variable
liamjohnston May 27, 2024
b66530a
Merge pull request #53 from springload/feature/feature-block-fed
liamjohnston May 27, 2024
ce3bbda
Merge pull request #57 from springload/fix/quote-styling-double-up
liamjohnston May 27, 2024
e544007
Merge pull request #55 from springload/feature/video-block-fed
liamjohnston May 27, 2024
cfd1aaa
Merge pull request #56 from springload/feature/image-block-fed
liamjohnston May 27, 2024
f4ca341
Newsletter streamfield block
liamjohnston May 28, 2024
8c207a0
Add unique ID tag
liamjohnston May 28, 2024
1a525dc
Hosted video FED
liamjohnston May 28, 2024
1bc54fa
Merge pull request #59 from springload/feature/hosted-video-fed
liamjohnston May 28, 2024
f7acf29
Fix feature block image sizes
liamjohnston May 28, 2024
a75ea57
Merge pull request #60 from springload/feature/feature-block-img-size
liamjohnston May 28, 2024
cb72fcb
fix svg inclnude path
liamjohnston May 28, 2024
6d62f81
standard hero for content page
sarahframe May 28, 2024
5ecaa0b
add search fields
sarahframe May 28, 2024
6045778
remove commented code
sarahframe May 28, 2024
ea489b8
Standard content hero image
liamjohnston May 29, 2024
6fc0656
configuring blocks for content page migration
sarahframe May 29, 2024
98d424c
configuring blocks for content page migration
sarahframe May 29, 2024
d30e7a5
changing desc to rich text field
sarahframe May 29, 2024
a16fe49
Merge pull request #64 from springload/feature/CDH-2-content-page
sarahframe May 29, 2024
73ce356
Merge pull request #63 from springload/feature/standard-hero-img
liamjohnston May 29, 2024
100c077
Merge pull request #58 from springload/feature/newsletter-streamfield…
liamjohnston May 29, 2024
a9cad59
update migrated block to use rich text block rather than structblock
sarahframe May 29, 2024
52e73fb
Merge pull request #61 from springload/fix/icon-path
liamjohnston May 29, 2024
08d2ba5
Remove old templates
liamjohnston May 29, 2024
77e9d98
Classname change
liamjohnston May 29, 2024
090305b
fixing migrate block
sarahframe May 29, 2024
4ab9dfe
Merge pull request #66 from springload/feature/CDH-2-content-page
sarahframe May 29, 2024
905b519
Merge pull request #67 from springload/fix/template-duplication
liamjohnston May 29, 2024
b1149d9
add content page as subpage of content page
sarahframe May 29, 2024
f65c244
Merge pull request #68 from springload/feature/CDH-2-content-page
sarahframe May 29, 2024
423056f
sidebar nav and jumplinks bed
sarahframe May 30, 2024
1006f6c
use relative URL
sarahframe May 30, 2024
8c01f9a
Merge pull request #69 from springload/feature/CDH-2-content-page
sarahframe May 30, 2024
cb7b180
Fix hosted video style
liamjohnston May 30, 2024
ad84da0
Merge pull request #70 from springload/fix/hosted-video-block-name-ch…
liamjohnston May 30, 2024
91ce5e4
More misc style fices
liamjohnston May 30, 2024
79dd5de
adding breadcrumbs as cached property
sarahframe May 30, 2024
061eab9
Finalise jumplink style
liamjohnston May 30, 2024
33c5207
Merge pull request #72 from springload/feature/CDH-2-content-page
sarahframe May 30, 2024
88ba791
Hard-code home text in breadcrumb
liamjohnston May 30, 2024
a0f366d
Merge pull request #73 from springload/fix/breadcrumb-home-text
liamjohnston May 30, 2024
8a3f561
Merge pull request #71 from springload/feature/misc-style-fixes
liamjohnston May 30, 2024
020c814
Update breakpoint for outdented content headings
liamjohnston May 30, 2024
c85da92
Merge pull request #74 from springload/fix/outdent-heading-when
liamjohnston May 30, 2024
a7464b0
Design QA updates
liamjohnston May 31, 2024
82ab82d
Text size and view transition enablment
liamjohnston May 31, 2024
10b7155
Merge pull request #75 from springload/fix/design-qa-updates
liamjohnston May 31, 2024
2a7fabc
new people landing page and updating profile page
sarahframe Jun 3, 2024
2d062ff
tidying up
sarahframe Jun 3, 2024
8dc9c95
make image in person model required
sarahframe Jun 4, 2024
e44a7d1
dont make image mandatory - issues with migration of models with no i…
sarahframe Jun 4, 2024
76f770b
adding breadcrumbs to profile model
sarahframe Jun 4, 2024
e345e10
Merge pull request #77 from springload/feature/CDH-2-content-page
sarahframe Jun 4, 2024
b577301
Person page hero layout
liamjohnston Jun 4, 2024
8921ae3
Update margins
liamjohnston Jun 4, 2024
5e2323f
Margin fixes
liamjohnston Jun 4, 2024
446bc1e
Merge pull request #78 from springload/feature/person-hero
liamjohnston Jun 4, 2024
3366485
section landing page
sarahframe Jun 4, 2024
d93127c
projects landing page
sarahframe Jun 4, 2024
dce5c54
Merge pull request #79 from springload/feature/people-page-bed
sarahframe Jun 4, 2024
f00e00a
add landing page as subpage of homepage
sarahframe Jun 4, 2024
c236c7c
Merge pull request #80 from springload/feature/people-page-bed
sarahframe Jun 4, 2024
b3055b7
Page layout class application fixes
liamjohnston Jun 4, 2024
0980c50
project page
sarahframe Jun 5, 2024
2297d88
add project website field for header, use website link as backup for …
sarahframe Jun 5, 2024
d3c3051
Merge pull request #82 from springload/feature/people-page-bed
sarahframe Jun 5, 2024
6931234
Merge pull request #81 from springload/fix/page-layout-updates
liamjohnston Jun 5, 2024
2da578f
add events landing page, remove body from projects landing page
sarahframe Jun 5, 2024
9c4edd6
Merge branch 'main' into feature/people-page-bed
sarahframe Jun 5, 2024
0c6778d
Project page FED
liamjohnston Jun 5, 2024
19cc2fc
Fixes
liamjohnston Jun 5, 2024
7957a19
event page hero
sarahframe Jun 5, 2024
3148ba2
Merge pull request #83 from springload/feature/people-page-bed
sarahframe Jun 5, 2024
34d9138
Merge pull request #84 from springload/feature/project-page-fed
liamjohnston Jun 5, 2024
d06b6ed
Event page FED
liamjohnston Jun 6, 2024
3b719dd
Merge pull request #85 from springload/feature/event-page-and-hero
liamjohnston Jun 6, 2024
610aa58
Rename linkedin icon
liamjohnston Jun 6, 2024
94bbee3
Merge pull request #86 from springload/fix/linkedin-icon-fix
liamjohnston Jun 6, 2024
c14cf86
standard tile block
sarahframe Jun 6, 2024
823c557
remove commented out code
sarahframe Jun 6, 2024
f341ad4
update page type property
sarahframe Jun 6, 2024
9c50460
update page type property
sarahframe Jun 6, 2024
551840d
remove print statement
sarahframe Jun 6, 2024
e8d40f4
remove comment from template
sarahframe Jun 6, 2024
cd3e210
update internal tile help text, add short title to breadcrumbs, remov…
sarahframe Jun 6, 2024
82be63f
Merge pull request #87 from springload/feature/tile-block-bed
sarahframe Jun 6, 2024
c0309b6
make see more link not required
sarahframe Jun 7, 2024
150d823
Tile block FED
liamjohnston Jun 7, 2024
01d1126
Merge pull request #88 from springload/feature/tile-block-bed
sarahframe Jun 9, 2024
d8f3b26
fix alt text
sarahframe Jun 9, 2024
8c78b97
add default to image for pages which dont use standard hero
sarahframe Jun 9, 2024
b6266a4
fix typo
liamjohnston Jun 9, 2024
5930070
Merge pull request #89 from springload/feature/tiles-block-fed
liamjohnston Jun 9, 2024
79b9ea5
fixing jumplinks
sarahframe Jun 10, 2024
b1cac5f
fix has_component_title
sarahframe Jun 10, 2024
5c13aa4
Merge pull request #90 from springload/fix/jumplinks-bed
sarahframe Jun 10, 2024
8f0448a
Fix conditional accordion heaing level
liamjohnston Jun 10, 2024
fb094be
Merge pull request #91 from springload/fix/accordion-heading-level
liamjohnston Jun 10, 2024
1999aed
add tags to people page, add recent work tile blocks to people page
sarahframe Jun 10, 2024
ba912f5
remove print line
sarahframe Jun 10, 2024
1ae2d98
Merge pull request #92 from springload/feature/article-tile-block-bed
sarahframe Jun 10, 2024
ae6b2cb
Person page FED updates
liamjohnston Jun 11, 2024
59a9764
Merge pull request #93 from springload/feature/people-page-tiles
liamjohnston Jun 11, 2024
c3f682c
Fix unbound local error on CTA buttons
haydngreatnews Jun 11, 2024
31c492e
Remove references to compressor from Django
haydngreatnews Jun 11, 2024
51535d1
Remove the compressor references, and npm tooling from unit tests CI
haydngreatnews Jun 11, 2024
d922caf
Remove frontend build from dockerfile
haydngreatnews Jun 11, 2024
ac0069f
Add dev routes for 404 and 500 pages
haydngreatnews Jun 11, 2024
e47b510
Fix up the references to people index in projects tests
haydngreatnews Jun 11, 2024
6b3c487
Node version bump, docs update, tidyups
liamjohnston Jun 11, 2024
43d1227
Update version to 4.0.0-dev, and add placeholder changelog
haydngreatnews Jun 11, 2024
b27c6d3
Format code text
liamjohnston Jun 11, 2024
57cb514
Merge pull request #95 from springload/chore/misc-fed-chore
liamjohnston Jun 11, 2024
e269d58
Image format improvements
liamjohnston Jun 11, 2024
4891783
Merge pull request #96 from springload/chore/image-format-improvements
liamjohnston Jun 11, 2024
84ba187
blog page and blog landing page
sarahframe Jun 11, 2024
c0d45c9
landing page template
sarahframe Jun 11, 2024
60d7a03
fixing tile template
sarahframe Jun 12, 2024
e9603b8
swap order of Page and Mixin
sarahframe Jun 12, 2024
95b3324
removing article date from blog post, adding category to blog post
sarahframe Jun 12, 2024
09ecc7a
More misc minor fed tweaks
liamjohnston Jun 12, 2024
f488bda
Merge pull request #97 from springload/feature/blog-page-bed
sarahframe Jun 12, 2024
034da4e
Blog (slash news) article hero
liamjohnston Jun 12, 2024
92c60ee
Update responsive image code
liamjohnston Jun 12, 2024
411950c
add featured checkboc to standard block, artcle feed block, event til…
sarahframe Jun 12, 2024
12a2498
remove print statement
sarahframe Jun 12, 2024
fee6186
Merge pull request #98 from springload/fix/more-misc-fed-tweaks
liamjohnston Jun 13, 2024
d1b1669
Fix breakpoint usage
liamjohnston Jun 13, 2024
50204b4
Merge pull request #99 from springload/feature/blog-hero-styles
liamjohnston Jun 13, 2024
57184f9
update article tile order, remove exclude from model
sarahframe Jun 13, 2024
6893743
Merge pull request #100 from springload/feature/tile-blocks-bed
sarahframe Jun 13, 2024
6a8db56
Streamfield wrapper overhaul and featured tiles style
liamjohnston Jun 14, 2024
ca32a44
Be more deliberate around component spacing
liamjohnston Jun 14, 2024
15d390d
Merge pull request #101 from springload/feature/streamfield-wrappers-…
liamjohnston Jun 14, 2024
b81c268
Remove experimental view transitions meta tag
liamjohnston Jun 16, 2024
a81ad29
Merge pull request #102 from springload/chore/remove-experimental-tra…
liamjohnston Jun 16, 2024
9a10960
Change streamfield child selector
liamjohnston Jun 16, 2024
b474a08
Fix event tile content
liamjohnston Jun 16, 2024
2374176
Merge pull request #103 from springload/fix/revert-streamfield-child-…
liamjohnston Jun 16, 2024
bcfd9b4
Merge pull request #104 from springload/fix/tile-content-fixes
liamjohnston Jun 17, 2024
7a0226b
Merge pull request #94 from springload/chore/remove-compressor
haydngreatnews Jun 18, 2024
9864708
CMS UI improvements - heading component and logo
liamjohnston Jun 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
last 2 ChromeAndroid versions
last 2 Chrome versions

last 2 iOS versions
last 2 Safari versions

last 2 Samsung versions

last 2 FirefoxAndroid versions
last 2 Firefox versions

last 2 OperaMobile versions
last 2 Opera versions

last 2 Edge versions
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.git*
.git/
.github/
.circleci/

docs/
infra/
node_modules/
var/

dev.env*
docker/database
docker/httpd
**/Dockerfile
**/.dockerignore
docker-bake.yml
docker-compose.yml
**/README.md
**/*.sql*
.justfile

appspec.yml
compose.yml

.files/*
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
public/
node_modules/

17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'jsx-a11y', 'jest'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jsx-a11y/recommended',
],
rules: {
'@typescript-eslint/ban-ts-comment': [0],
},
env: {
'jest/globals': true,
},
};
27 changes: 0 additions & 27 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# We need node to install the JS dependencies used to build static assets.
# Because some unit tests use Django's test client to visit pages, we need
# to have JS and styles ready to be loaded on those pages or there will be
# errors.
# Uses the node version specified in package.json
- name: Setup node
uses: actions/setup-node@v4

# Basing the cache on the hash of the lockfile means that the cache should
# only ever be invalidated when we update package-lock.json, which happens
# as part of a release. For more info, see:
# https://docs.github.com/en/free-pro-team@latest/actions/guides/caching-dependencies-to-speed-up-workflows
- name: Cache node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-${{ hashFiles('package-lock.json') }}
npm-

- name: Install JS dependencies
run: npm ci

# Python version to use is stored in the .python-version file, which is the
# convention for pyenv (https://github.com/pyenv/pyenv)
# setup-python automatically picks up version from .python-version
Expand All @@ -80,9 +56,6 @@ jobs:
- name: Setup local_settings.py
run: python -c "import uuid; print('SECRET_KEY = \'%s\'' % uuid.uuid4())" >> cdhweb/settings/local_settings.py

- name: Build static assets
run: python manage.py compress

- name: Run pytest
run: pytest --cov=./ --cov-config=.coveragerc --cov-report=xml

Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
local_settings.py
db.sqlite3
cdhweb.dbml
*.sql

# Media ignores
static
static/dist
myapp/static
media
static/CACHE
sitemedia/fonts
**/.sass-cache/
cdhweb/static_src/fonts/**/*.woff2

# Vim stuff
*.pyc
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/*.html
**/*.ss
**/*.yml
node_modules
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"arrowParens": "always"
}
10 changes: 7 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

4.0.0-dev1
-----
- Redesigned and rebuilt
- TODO

3.5.3
-----

Expand Down Expand Up @@ -30,7 +35,7 @@ Maintenance release: npm package updates
- updated to django 4.2 and wagtail 5.0
- updated to python 3.8+ (tested against 3.8-3.11)
- updated node version 18
- removed editoria11y v1 integration
- removed editoria11y v1 integration
- removed Percy visual testing workflow

3.4.4
Expand All @@ -41,7 +46,7 @@ Maintenance release: npm package updates
3.4.3
-----

* Update to include Humanities + Data Science Institute instructors and participants as
* Update to include Humanities + Data Science Institute instructors and participants as
affiliates and student affiliates
* bugfixes:
* correct Event ordering on semester archive pages
Expand Down Expand Up @@ -401,4 +406,3 @@ Other Content
Import
~~~~~~
* As an admin, I want an import of content from the previous version of the site so that all the information available on the old site is migrated to the new version.

35 changes: 35 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ Pull requests should be made against **develop**.
Development instructions
------------------------

Bare-metal
~~~~~~~~~~

Initial setup and installation:

- Recommended: create and activate a python 3.9 virtualenv::
Expand Down Expand Up @@ -72,6 +75,38 @@ You must add a ``SECRET_KEY`` value in your local settings.

- Install OpenCV dependencies (if necessary) for `wagtail image feature detection <https://docs.wagtail.io/en/stable/advanced_topics/images/feature_detection.html>`_

Docker (Springload)
~~~~~~~~~~~~~~~~~~~

- Download the **database**, **media dump** and **fonts** from https://drive.google.com/drive/u/0/folders/1B7qObEuO6sYJhVyE23RP8Tf0IbFCLlMf
- Copy the database dump into `docker/database`
- Extract the media into `media`

tar -xvzf path_to_file.tar.gz -C media

- Move the font files into `static_src/fonts`
- Copy cdhweb/settings/local_settings.py.docker-sample to cdhweb/settings/local_settings.py
- Run `docker-compose up`

Frontend (Springload)
~~~~~~~~~~~~~~~~~~~~~

The frontend uses webpack and npm.

First, make sure you're using the correct node version:

nvm use

If it tells you to install a new version, do so. Then run ``nvm use`` again.

Install dependencies:

npm install

Then to run the site in development mode locally:

npm start

Setup pre-commit hooks
~~~~~~~~~~~~~~~~~~~~~~

Expand Down
7 changes: 7 additions & 0 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// $schema provides code completion hints to IDEs.
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
"moderate": true,
"allowlist": [
]
}
14 changes: 14 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Used by Jest and others
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
[
'@babel/preset-react',
{
runtime: 'automatic',
useBuiltIns: true,
},
],
],
};
2 changes: 1 addition & 1 deletion cdhweb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version_info__ = (3, 5, 3, None)
__version_info__ = (4, 0, 0, "dev1")


# Dot-connect all but the last. Last is dash-connected if not None.
Expand Down
Loading
Loading