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

Version 4 initial release #445

Merged
merged 553 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
553 commits
Select commit Hold shift + click to select a range
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
5284125
filtering on events landing page
sarahframe Jun 13, 2024
8973ac0
Site alert
liamjohnston Jun 18, 2024
7a0226b
Merge pull request #94 from springload/chore/remove-compressor
haydngreatnews Jun 18, 2024
4e5eb9b
Only serve files from the webpack build in the docker `local.py`
haydngreatnews Jun 18, 2024
9864708
CMS UI improvements - heading component and logo
liamjohnston Jun 18, 2024
3973913
add tiles to events landing page, update views
sarahframe Jun 19, 2024
8b3887b
set default slug on event landing page
sarahframe Jun 19, 2024
2b8b217
tidying up
sarahframe Jun 19, 2024
012e250
blog page filtering
sarahframe Jun 19, 2024
bfa8288
tidying up
sarahframe Jun 19, 2024
567ab3c
Merge pull request #106 from springload/fix/static-files
haydngreatnews Jun 19, 2024
e3e06b8
Merge pull request #107 from springload/feature/events-landing-bed
sarahframe Jun 19, 2024
9bf37fd
PR feedback
liamjohnston Jun 19, 2024
c809a55
blog landing page tiles and filters
sarahframe Jun 19, 2024
afcbe2f
fix datetime import
sarahframe Jun 19, 2024
d825057
Merge pull request #108 from springload/fix/event-landing-page
sarahframe Jun 19, 2024
5b86403
adding pagination to blog landing page
sarahframe Jun 20, 2024
05ea60e
tidying up
sarahframe Jun 20, 2024
c5a02bd
remove get_url_parts
sarahframe Jun 20, 2024
39482d2
Merge pull request #109 from springload/feature/blog-landing-page-bed
sarahframe Jun 20, 2024
4957142
Update logo SVG code
liamjohnston Jun 20, 2024
459ce5f
Explicitly serve /static as files, instead of letting the finder do it
haydngreatnews Jun 20, 2024
d351ff0
sam-timisations
liamjohnston Jun 20, 2024
2676b92
Merge pull request #110 from springload/fix/update-logo-svg
liamjohnston Jun 20, 2024
5a705f8
Blog landing FED
liamjohnston Jun 20, 2024
562d710
Merge pull request #113 from springload/chore/cms-style-fixes
liamjohnston Jun 20, 2024
311f0c8
Make blog landing page a routable page which also serves it's children
haydngreatnews Jun 20, 2024
8086d0c
Serve blogs from under their dated-urls
haydngreatnews Jun 21, 2024
c867698
Clean up the BlogLandingPageView
haydngreatnews Jun 21, 2024
4efca36
Serve static files for docker using staticfiles_urlpatterns
haydngreatnews Jun 21, 2024
2bef7b8
Limit where featured tile style can be applied
liamjohnston Jun 23, 2024
fb3e8d8
update associated help text
liamjohnston Jun 23, 2024
030936b
Sidenav sticky offset
liamjohnston Jun 23, 2024
26bdb47
Merge pull request #115 from springload/fix/blog-landing
haydngreatnews Jun 24, 2024
a8a9700
Add form and filter backend for project landing page
haydngreatnews Jun 23, 2024
772d766
Include Page.search_fields across our inheriting classes
haydngreatnews Jun 23, 2024
e8915a1
Refactor project search so that queries/filters are set up to work
haydngreatnews Jun 23, 2024
29ddb35
Remove unused `tags` from project pages
haydngreatnews Jun 23, 2024
b2fed29
Add method and field filters to project index page
haydngreatnews Jun 24, 2024
3fa1f00
Add featured project support to landing page
haydngreatnews Jun 24, 2024
e5e6487
Set up the "current" filter to properly default to True
haydngreatnews Jun 24, 2024
5c3c91c
Merge pull request #114 from springload/feature/blog-landing-fed
liamjohnston Jun 24, 2024
e8f7683
site alert bed work
sarahframe Jun 24, 2024
7f072a9
removing migration files not necessary
sarahframe Jun 24, 2024
a7f2b17
Merge pull request #116 from springload/fix/featured-tiles-on-homepag…
liamjohnston Jun 24, 2024
d394882
Merge pull request #117 from springload/fix/sidenav-sticky-position
liamjohnston Jun 24, 2024
4ff9c25
Fix aria-labelledby
liamjohnston Jun 24, 2024
7a54b5f
fix class name
liamjohnston Jun 24, 2024
bd4dbfc
remove log
liamjohnston Jun 24, 2024
d2fe062
Merge pull request #105 from springload/feature/site-alert
liamjohnston Jun 24, 2024
bcf5eb0
Misc tiny CSS tweaks
liamjohnston Jun 24, 2024
c16e5c6
Merge remote-tracking branch 'origin/main' into feature/project-landing
haydngreatnews Jun 24, 2024
5e5e2b6
Complete implementation of project Role filter
haydngreatnews Jun 24, 2024
89e5329
Rebase the site alerts migration, as it got out-of-sync
haydngreatnews Jun 25, 2024
01546c6
Fix the links on the blog landing page to use the new URLs
haydngreatnews Jun 25, 2024
c918d79
Merge pull request #120 from springload/fix/blog-links
haydngreatnews Jun 25, 2024
a4616b7
Merge remote-tracking branch 'origin/main' into feature/project-landing
haydngreatnews Jun 25, 2024
8b12629
Actually add an admin for project roles
haydngreatnews Jun 25, 2024
262d066
... And put it in the menu
haydngreatnews Jun 25, 2024
0a9dd18
FED
liamjohnston Jun 25, 2024
456441c
people landing page
sarahframe Jun 25, 2024
2d65960
Merge pull request #118 from springload/feature/project-landing
haydngreatnews Jun 25, 2024
ee02e05
fix events landing page
sarahframe Jun 25, 2024
ca69c6f
Merge pull request #119 from springload/fix/tiny-css-tweaks
liamjohnston Jun 25, 2024
91b64a2
Merge pull request #121 from springload/fix/events-landing-bed
sarahframe Jun 25, 2024
33c94a4
Events landing FED
liamjohnston Jun 26, 2024
3a6fe12
Merge pull request #122 from springload/feature/events-landing-FED
liamjohnston Jun 26, 2024
188449c
Form style fix
liamjohnston Jun 26, 2024
3580445
Merge pull request #112 from springload/fix/static-files
haydngreatnews Jun 26, 2024
0011f5e
Display warning banner on test sites
liamjohnston Jun 3, 2024
7814124
Env loading fixes
liamjohnston Jun 3, 2024
6dac77e
Switch test-site reminder to use existing variables
haydngreatnews Jun 26, 2024
4755a66
Merge pull request #123 from springload/fix/css-input-style-fix
liamjohnston Jun 26, 2024
2f62ebf
Merge pull request #76 from springload/feature/test-site-reminder
haydngreatnews Jun 26, 2024
479f327
Custom checkbox/radio and related search style updates
liamjohnston Jun 26, 2024
7740ded
Update cdhweb/static_src/global/components/forms.scss
liamjohnston Jun 27, 2024
0c7063a
Update cdhweb/static_src/images/sprites_src/two-tone/person.svg
liamjohnston Jun 27, 2024
73d12d0
Merge pull request #124 from springload/feature/custom-radio-and-chec…
liamjohnston Jun 27, 2024
a76b34c
people category page and tiles
sarahframe Jun 30, 2024
62fcb16
FED plus related tidyups
liamjohnston Jul 1, 2024
8589fcb
updating position title for tile
sarahframe Jul 1, 2024
5b37a22
add function to get person position for tile
sarahframe Jul 1, 2024
c3c1593
Merge branch 'main' into feature/people-landing-page-bed
sarahframe Jul 1, 2024
4ad48f5
Merge pull request #125 from springload/feature/people-landing-page-bed
liamjohnston Jul 2, 2024
c0b781c
Misc FED tidyups
liamjohnston Jul 2, 2024
e3a2048
whitespace
liamjohnston Jul 3, 2024
9da4798
Merge pull request #126 from springload/chore/misc-fed-tidyups
liamjohnston Jul 3, 2024
c7e92c4
add fixed accordion to project page
sarahframe Jul 3, 2024
7ccdd4d
adding more choices
sarahframe Jul 3, 2024
c8d573c
Merge pull request #128 from springload/fix/bed-fixes
sarahframe Jul 3, 2024
a9cf0ae
Fix migrated content layout
liamjohnston Jul 3, 2024
b707f39
Merge pull request #129 from springload/fix/migrated-content-style-fixes
liamjohnston Jul 3, 2024
902c511
Improve visually hidden until focus code
liamjohnston Jul 3, 2024
7ba8789
purple mode
sarahframe Jul 3, 2024
8cf12ae
Misc FED tidyups
liamjohnston Jul 2, 2024
3a9fa57
whitespace
liamjohnston Jul 3, 2024
457f095
Fix migrated content layout
liamjohnston Jul 3, 2024
105af22
Purple mode FED
liamjohnston Jul 3, 2024
e0be54a
Merge branch 'fix/bed-fixes' of ssh://github.com/springload/cdh-web i…
liamjohnston Jul 3, 2024
8e8d350
Fix outdented headings for migrated content.
liamjohnston Jul 4, 2024
d2ec782
Merge pull request #130 from springload/fix/better-visually-hidden-un…
liamjohnston Jul 4, 2024
7a7f355
Merge pull request #132 from springload/fix/outdented-headings-for-mi…
liamjohnston Jul 4, 2024
95696fd
update icon
sarahframe Jul 4, 2024
c65261b
Merge pull request #131 from springload/fix/bed-fixes
sarahframe Jul 4, 2024
eb46a30
show current page in primary nav
sarahframe Jul 4, 2024
5d98587
Merge pull request #133 from springload/fix/bed-fixes
sarahframe Jul 4, 2024
235ca12
FED - highlight current section/item in main nav
liamjohnston Jul 5, 2024
ce62a3c
remove section link title from primary nav
sarahframe Jul 5, 2024
f773118
add help text to attachments
sarahframe Jul 5, 2024
316e337
Support content-type search filters
haydngreatnews Jul 5, 2024
f1778ee
Fix react version, and reorder radios to match html
liamjohnston Jul 5, 2024
e0092a5
update search url in header.html
sarahframe Jul 5, 2024
0a8289f
Always include site_search in the site footer context
haydngreatnews Jul 5, 2024
c3139d4
Merge pull request #134 from springload/feature/highlight-current-nav…
liamjohnston Jul 7, 2024
6ca6414
remove unused snippets
sarahframe Jul 7, 2024
626f92f
Merge pull request #136 from springload/feature/search-filters
sarahframe Jul 8, 2024
0eda5ed
add deprecated embed block
sarahframe Jul 8, 2024
730170f
Merge pull request #135 from springload/fix/bed-fixes
sarahframe Jul 8, 2024
0c245ec
update project filter labels
sarahframe Jul 8, 2024
1e17eef
update project filter labels
sarahframe Jul 8, 2024
d46bbe4
allow more than one filter per project
sarahframe Jul 10, 2024
4731403
remove print statement
sarahframe Jul 10, 2024
2f4b6c2
Merge pull request #137 from springload/fix/bed-fixes
sarahframe Jul 10, 2024
7bbb398
Opengraph setup
liamjohnston Jul 3, 2024
4b9e585
update default image path
sarahframe Jul 7, 2024
959d1c8
Fix up import path of `static` module for default preview image
haydngreatnews Jul 14, 2024
f565268
Merge pull request #127 from springload/chore/opengraph-setup
haydngreatnews Jul 14, 2024
3cd61a4
[CDH-50] Apply default search filter to html version of form
liamjohnston Jul 15, 2024
707ad6a
Merge pull request #138 from springload/fix/CDH-50-apply-default-sear…
liamjohnston Jul 15, 2024
332ff00
Prefetch all the people-related objects for the category page
haydngreatnews Jul 15, 2024
9fd4bdc
Exclude profiles from the People landing page listing
haydngreatnews Jul 15, 2024
ae2f2b6
Fix up "default-to-current" on the project landing page
haydngreatnews Jul 16, 2024
40d202a
Merge pull request #140 from springload/fix/default-current-proj
haydngreatnews Jul 16, 2024
ba45cda
Merge pull request #139 from springload/fix/people-landing-page
haydngreatnews Jul 21, 2024
4d98407
Add Related Link Types admin so we can add more things
haydngreatnews Jul 21, 2024
e33eaff
Add method/field/role as tags on Project pages
haydngreatnews Jul 21, 2024
0132ab9
Move people-profile tags to the main content-editing tab of the CMS
haydngreatnews Jul 21, 2024
5c2c5ae
Only show current title on a profile if a person has one
haydngreatnews Jul 21, 2024
39fe271
Add tests for Project.display_tags
haydngreatnews Jul 22, 2024
9c6f05d
Remove test references to defunct PageIntro model
haydngreatnews Jul 22, 2024
f392b27
Merge pull request #141 from springload/fix/various-fixes
haydngreatnews Jul 22, 2024
0103210
Remove reference to non-existant template in 500 page
haydngreatnews Jul 22, 2024
72eab80
Merge pull request #143 from springload/fix/500-page-errors
haydngreatnews Jul 23, 2024
ca7cfcd
Enwiden the tiles
liamjohnston Jul 23, 2024
0df4253
Fix: person page tiles heading level
liamjohnston Jul 23, 2024
6e75b4d
Merge pull request #145 from springload/fix/person-page-tile-heading-…
liamjohnston Jul 23, 2024
2b048ff
Merge pull request #144 from springload/feature/enwiden-the-tiles
liamjohnston Jul 23, 2024
9d86f5e
Add an automatic child listing to section landing pages
haydngreatnews Jul 24, 2024
ab4fa93
Set an explicit ordering on the project listing
haydngreatnews Jul 24, 2024
242c094
Merge pull request #147 from springload/fix/project-list-ordering
haydngreatnews Jul 24, 2024
6f86e8a
Remove role from the project tags
haydngreatnews Jul 24, 2024
e3c4a81
Remove download file-size limits
haydngreatnews Jul 24, 2024
2870d9f
Adjust spacing values to fit more tiles (sometimes)
liamjohnston Jul 24, 2024
deba821
Merge pull request #150 from springload/feature/adjust-sizes-to-fit-m…
liamjohnston Jul 24, 2024
64f7902
Put the tiles in the right place
liamjohnston Jul 25, 2024
00174ae
Safety check, and fix other instances of tile block areas
liamjohnston Jul 25, 2024
a021d51
Merge pull request #146 from springload/feat/auto-landing-listing
liamjohnston Jul 25, 2024
4d088b4
Merge pull request #149 from springload/fix/download-file-size
haydngreatnews Jul 25, 2024
65385e8
Merge pull request #142 from springload/fix/improve-tests
liamjohnston Jul 25, 2024
45ea5d4
Merge pull request #148 from springload/fix/remove-project-role-tags
liamjohnston Jul 25, 2024
da6c626
Remove old people-category views from URLs
haydngreatnews Jul 31, 2024
882e3bd
Remove extra sitemap lookups, so the sitemap is usable again
haydngreatnews Jul 31, 2024
1dfd398
Fix mismatched dates on Blog URL generation vs serving
haydngreatnews Jul 31, 2024
f9689eb
Prefetch the blog images on the landing page so we make fewer queries
haydngreatnews Jul 31, 2024
168b8c8
Switch blog page listing to show 12-per-page
haydngreatnews Jul 31, 2024
21169f0
Add Events ical view back into URLs
haydngreatnews Aug 1, 2024
bd43f24
Merge pull request #151 from springload/fix/people-categories
haydngreatnews Aug 1, 2024
934c34a
Merge pull request #153 from springload/fix/blog-urls
haydngreatnews Aug 1, 2024
0b01717
Merge pull request #154 from springload/fix/sitemaps
haydngreatnews Aug 1, 2024
c69f070
Merge pull request #155 from springload/fix/blog-listing-per-page
haydngreatnews Aug 1, 2024
1e465d7
Add cal link link to FED
liamjohnston Aug 2, 2024
e143121
minor QA tweaks
liamjohnston Aug 2, 2024
24e924a
Add links to blog author pages
liamjohnston Aug 4, 2024
4bc1d21
Merge pull request #157 from springload/fix/link-blog-author
liamjohnston Aug 4, 2024
e76ff72
Merge branch 'main' into fix/add-ical
haydngreatnews Aug 4, 2024
e0d1f41
Merge pull request #156 from springload/fix/add-ical
haydngreatnews Aug 5, 2024
fa4cebe
Basic 404 page styling
liamjohnston Aug 5, 2024
16a5ee8
Merge pull request #158 from springload/fix/404-basic-styling
liamjohnston Aug 5, 2024
fc47143
change project filter role to project lead
sarahframe Aug 8, 2024
c870bd3
update project accordion analysis choice
sarahframe Aug 8, 2024
c18f023
change recent to related on profile page
sarahframe Aug 8, 2024
9440a5c
re add code block
sarahframe Aug 12, 2024
db66c4b
fix spacing
sarahframe Aug 13, 2024
f66ce55
Merge pull request #160 from springload/fix/re-enable-code-block
sarahframe Aug 13, 2024
65ed7b4
Merge pull request #159 from springload/fix/bed-fixes
sarahframe Aug 13, 2024
a6bf8bb
group project roles togther
sarahframe Aug 13, 2024
96a6907
add title to search page
sarahframe Aug 13, 2024
35d5900
fix spacing
sarahframe Aug 13, 2024
f861de3
fixes
sarahframe Aug 13, 2024
713ffe5
Merge pull request #162 from springload/fix/group-project-roles
sarahframe Aug 13, 2024
dae6d57
update clear filters to reset
sarahframe Aug 14, 2024
5ed97fa
Merge pull request #163 from springload/fix/change-clear-filter-to-reset
sarahframe Aug 19, 2024
0d02fff
Merge pull request #161 from springload/fix/add-title-search-page
sarahframe Aug 19, 2024
62a3941
remove embed block from deprecated group
sarahframe Aug 19, 2024
85c4411
remove custom embed block
sarahframe Aug 19, 2024
650210c
Merge pull request #164 from springload/fix/embed-block-fix
sarahframe Aug 19, 2024
83b1fff
clear all project filters
sarahframe Aug 19, 2024
eb1c865
Restore RSS feed functionality
haydngreatnews Aug 19, 2024
2cd1aea
Merge pull request #165 from springload/fix/clear-all-project-filter
sarahframe Aug 19, 2024
1c79715
Populate event feed images from the pre-v4-migration thumbnails
haydngreatnews Aug 20, 2024
a30c32b
Merge pull request #166 from springload/fix/rss-atom-feeds
haydngreatnews Aug 20, 2024
9b8ef2f
Merge pull request #167 from springload/fix/event-images
haydngreatnews Aug 20, 2024
343f37c
Add a stub EmbedBlock module back so the migrations work again
haydngreatnews Aug 20, 2024
83f278b
Merge pull request #168 from springload/fix/embed-block-migrations
haydngreatnews Aug 20, 2024
b960b75
add redirect from updates to blog/news
sarahframe Aug 20, 2024
d78788f
add redirect from updates to blog/news
sarahframe Aug 20, 2024
376950a
change to redirect view
sarahframe Aug 20, 2024
5936962
Merge pull request #169 from springload/feature/updates-redirects
sarahframe Aug 20, 2024
da6449a
add past executive committee category
sarahframe Aug 20, 2024
8b7a7a9
Merge pull request #170 from springload/feature/add-past-exec-committ…
sarahframe Aug 20, 2024
19146e5
Make blog post redirect view a permanent / 301 redirect
rlskoeser Aug 20, 2024
930f11e
fix by semester path
sarahframe Aug 20, 2024
70b098e
Merge pull request #172 from springload/feature/add-past-exec-committ…
sarahframe Aug 20, 2024
78a1b99
Merge pull request #171 from rlskoeser/patch-1
sarahframe Aug 20, 2024
62af6e7
add missing slash to by semester path
sarahframe Aug 21, 2024
daec733
Merge pull request #173 from springload/feature/add-past-exec-committ…
sarahframe Aug 21, 2024
5fa8994
make event tiles month-day
sarahframe Aug 26, 2024
62cf444
Merge pull request #174 from springload/fix/fix-date-on-event-tiles
sarahframe Aug 26, 2024
773c105
make events url include year and month
sarahframe Aug 26, 2024
6f3d1ac
make updates/rss work and remove blog/rss
sarahframe Aug 26, 2024
c723b44
remove blog.urls from urls.py
sarahframe Aug 26, 2024
7053aaa
Merge pull request #176 from springload/fix/event-urls
sarahframe Aug 26, 2024
849a7c4
Merge pull request #177 from springload/fix/error-pages
sarahframe Aug 26, 2024
54f936c
udpate 404 and 500 error templates
sarahframe Aug 27, 2024
ab5d103
adding webp resized images
sarahframe Aug 27, 2024
8fe581b
Merge pull request #178 from springload/fix/error-templates-fix
sarahframe Aug 27, 2024
3d8862e
add site name to page title
sarahframe Aug 27, 2024
1ae7308
undo last commit
sarahframe Aug 27, 2024
7bb85c3
Merge pull request #179 from springload/fix/error-templates-fix
sarahframe Aug 27, 2024
029d0a1
Refactor opengraph image generation and supporting URL builders
haydngreatnews Sep 3, 2024
45c5b66
Add migration for PurpleMode migration to GenericSetting
haydngreatnews Sep 3, 2024
e9a4ca8
Set hostname for docker DB restore so we don't leave it unpopulated
haydngreatnews Sep 3, 2024
f442b57
Include hero image in OG resolution order
haydngreatnews Sep 3, 2024
dc9f6cb
Merge pull request #180 from springload/fix/og-images
haydngreatnews Sep 3, 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