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

Check in Riverlea extension with history from v0.7 #31478

Open
wants to merge 229 commits into
base: 5.80
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
fcc6d33
riverlea - check in external repo @ v0.7
artfulrobot Oct 3, 2022
cf7f8b5
riverlea - updates empty stream
vingle Jun 29, 2024
b694693
riverlea - adds front-end definitions and variables, adds choice betw…
vingle Jun 29, 2024
e1ce8f0
riverlea - dashboard/tabs fixes
vingle Jul 3, 2024
875712e
riverlea - button spacing
vingle Jul 3, 2024
9c695ea
riverlea - select list arrows
vingle Jul 3, 2024
1453e66
riverlea - select list fixes
vingle Jul 3, 2024
e06dd0b
riverlea - more front-end work & fixes
vingle Jul 3, 2024
7f8dd49
riverlea - fixes wordpress issue https://lab.civicrm.org/extensions/r…
vingle Jul 3, 2024
4e5b33f
riverlea - fixes
vingle Jul 4, 2024
93e1680
riverlea - v0.8 metadata
vingle Jul 4, 2024
d63dcc0
riverlea - various FormBuilder fixes
vingle Jul 4, 2024
32a35e9
riverlea - v0.8 meta
vingle Jul 4, 2024
0e323b6
riverlea - FormBuilder fixes
vingle Jul 4, 2024
4a2f4c2
riverlea - Select2 bold labels and fix for https://lab.civicrm.org/ex…
vingle Jul 9, 2024
5eac6f4
riverlea - adds and merges contactSummary.css, adds avatar support an…
vingle Jul 12, 2024
f156bf0
riverlea - fixes, including darkmode code
vingle Jul 12, 2024
f21d82b
riverlea - creates overides for FormBuilder & SearchKit
vingle Jul 12, 2024
7a8c54a
riverlea - v0.9 metadata
vingle Jul 12, 2024
1282a52
riverlea - copy fix
vingle Jul 12, 2024
a2753c0
riverlea - Add settings screen
mattwire Jul 12, 2024
923e8e1
riverlea - searchkit merge / integration
vingle Jul 18, 2024
924cc54
riverlea - css fixes & SK merging
vingle Jul 20, 2024
e1fe55a
riverlea - contact dashboard tabs fix plus WPress button reset
vingle Jul 20, 2024
5d2f3a9
riverlea - button internal alignment and padding whackamole
vingle Jul 20, 2024
f422fa7
riverlea - Fix Utils classname
mattwire Jul 18, 2024
0235fc7
riverlea - SearchKit merge complete, other fixes, incl https://lab.ci…
vingle Jul 23, 2024
6041925
riverlea - Form Builder merging, some other fixes
vingle Jul 24, 2024
b8148dd
riverlea - adds FontAwesome 6 and partially continues AF merge
vingle Jul 24, 2024
45a4483
riverlea - corrects file error
vingle Jul 24, 2024
4c0ec25
riverlea - Fixes FontAwesome6
vingle Jul 25, 2024
99979e4
riverlea - concatenate two FA css files, comment out unused fonts
vingle Jul 26, 2024
cf4d2f0
riverlea - Removes Settings Screen, following discussion https://lab.…
vingle Jul 26, 2024
d88aa54
riverlea - FormBuilder merging continued
vingle Jul 26, 2024
91443ed
riverlea - FB merging/refactor continued
vingle Jul 26, 2024
03c5a5a
riverlea - FB: dropdown checkboxes
vingle Jul 26, 2024
8c65ddf
riverlea - adds version number & name to footer for dev, button fix
vingle Jul 27, 2024
e60f911
riverlea - Form Builder merge continued, including dropdown float fix
vingle Jul 27, 2024
702a4b8
riverlea - further FB merge
vingle Jul 27, 2024
12cae1d
riverlea - adds new override (not working) for AfCore.css and other F…
vingle Jul 29, 2024
129f107
riverlea - merges afCore.css, tries to fix https://lab.civicrm.org/ex…
vingle Jul 29, 2024
dd37a00
riverlea - Metadata, plus a11y issue ref https://lab.civicrm.org/exte…
vingle Jul 30, 2024
a67e178
riverlea - suppress core font awesome 4
ufundo Jul 30, 2024
d696664
riverlea - re-enable font awesome 6 imports
ufundo Jul 30, 2024
821c958
riverlea - add a comment about namespacing to shims
ufundo Jul 30, 2024
4dcb085
riverlea - versions numbers
vingle Jul 30, 2024
00c1138
riverlea - FontAwesome6 fixes for icon-picker
vingle Jul 30, 2024
6505a74
riverlea - reverts name change
vingle Jul 30, 2024
16d42cb
riverlea - https://lab.civicrm.org/extensions/riverlea/-/issues/26#no…
vingle Jul 30, 2024
a14ca48
riverlea - Fixes error in last PR
vingle Jul 30, 2024
fa4d845
riverlea - V0.8.1
Jul 23, 2024
bc1837f
riverlea - Fix low contrast issues on contact dashboard
monishdeb Jul 31, 2024
99a6b39
riverlea - Add settings screen
mattwire Jul 12, 2024
ab57351
riverlea - Fix mismatched extensionutil
Jul 23, 2024
f2ccb15
riverlea - reduces shims size
vingle Aug 1, 2024
e74249d
riverlea - removes FA6 icon picker fix, following https://github.com/…
vingle Aug 1, 2024
7875492
riverlea - adds and integrates more direct file over-rides, updates R…
vingle Aug 1, 2024
7420743
riverlea - Delete navigationmenu.mgd.php
Aug 2, 2024
1b950e5
riverlea - Delete riverlea.setting.php
Aug 2, 2024
ef758bd
riverlea - fix bootstrap bundle css
ufundo Aug 2, 2024
ae7501c
riverlea - Removes Font Awesome 6
vingle Aug 2, 2024
2ecbff1
riverlea - Fixes critical bug
Aug 2, 2024
a7289dc
riverlea - Date plus reverts mixin change from https://lab.civicrm.or…
Aug 2, 2024
3be6acf
riverlea - FontAwesome6 handling, select2 bug, upgrade screen styling…
vingle Aug 5, 2024
0dea21b
riverlea - FormBuilder tidy/fixes, button icon align and jqueery ui i…
vingle Aug 6, 2024
b90d1f8
riverlea - HackneyBrook fixes, partic darkmode
vingle Aug 6, 2024
fecdf6b
riverlea - Many minor fixes, inc. variable simplification, darkmode a…
vingle Aug 6, 2024
d5f1145
riverlea - further fixes
vingle Aug 6, 2024
65f655b
riverlea - various fixes, including responsive table headers https://…
vingle Aug 8, 2024
f7a78b4
riverlea - add a composer.json
Aug 7, 2024
1ce47db
riverlea - responsive scrolling table fix
vingle Aug 8, 2024
b5993d7
riverlea - version number for last fix
vingle Aug 8, 2024
86a6551
riverlea - ck editor config https://lab.civicrm.org/extensions/riverl…
vingle Aug 8, 2024
d1d362f
riverlea - 34 - fixes https://lab.civicrm.org/extensions/riverlea/-/i…
vingle Aug 12, 2024
8a8c432
riverlea - 35 - FB, field label padding
vingle Aug 12, 2024
2b47c3b
riverlea - various in https://lab.civicrm.org/extensions/riverlea/-/i…
vingle Aug 13, 2024
c782fc7
riverlea - various, ref https://lab.civicrm.org/extensions/riverlea/-…
vingle Aug 13, 2024
af674c5
riverlea - success colour on status = ok in footer
vingle Aug 13, 2024
5d1cb5d
riverlea - variable comments, some fixes
vingle Aug 13, 2024
593dafc
riverlea - removes ~1750 unused lines of Bootstrap css
vingle Aug 13, 2024
6b57b85
riverlea - specificity fixes
vingle Aug 14, 2024
f44b0bf
riverlea - Added: better D7 Garland support
vingle Aug 15, 2024
73ef06b
riverlea - adds Changelog
vingle Aug 15, 2024
612e52e
riverlea - Update README.md
Aug 16, 2024
ff5681f
riverlea - Update _core.css
Aug 16, 2024
cdc0331
riverlea - Update info.xml
Aug 16, 2024
1251194
riverlea - Update CHANGELOG.md
Aug 16, 2024
f290dfc
riverlea - v 0.9.43: see changelog
vingle Aug 26, 2024
d7d2aef
riverlea - v0.9.44 - see changelog
vingle Aug 26, 2024
750211d
riverlea - 0.9.45 - mostly SearchKit admin work
vingle Aug 26, 2024
c1bb059
riverlea - 0.9.46 - adds non-funcitoning settings screen to control d…
vingle Aug 28, 2024
1565999
riverlea - 0.9.47 mostly fixes
vingle Aug 29, 2024
23362f9
riverlea - 0.9.48 - Minetta input & input size modifiers
vingle Aug 29, 2024
eaa54eb
riverlea - 0.9.49 - multiple button fixes (incl groups + icons)
vingle Aug 30, 2024
dfd122c
riverlea - comment cleanup
vingle Aug 30, 2024
57f516b
riverlea - v0.9.50 various small fixes
vingle Sep 11, 2024
e1f09da
riverlea - Pinking shears
christianwach Sep 11, 2024
d8e3ebe
riverlea - duplicate selector and missing semi colon
vingle Sep 11, 2024
391aad2
riverlea - adds pink sheers to changelog
vingle Sep 11, 2024
19f3ffa
riverlea - shrinks down Bootstrap 3, gives sub-headings, adds some va…
vingle Sep 11, 2024
0d52d72
riverlea - Bootstrap cleanup (merges two files, removes duplicates, p…
vingle Sep 11, 2024
8456b2d
riverlea - Bootstrap - remove one reset
vingle Sep 11, 2024
97580c5
riverlea - integrates Wellow, and makes some changes
vingle Sep 12, 2024
a9f0c88
riverlea - Fix dashboard droppable area collapse
Sep 12, 2024
c674f21
riverlea - fixes https://lab.civicrm.org/extensions/riverlea/-/issues/41
vingle Sep 12, 2024
e449e4f
riverlea - Makes Mosaico Wizard match Civi wizard, fixes https://lab.…
vingle Sep 12, 2024
8e775e1
riverlea - 0.9.53: fixes incl for Standalone, Hackney, handling of li…
vingle Sep 12, 2024
e71708e
riverlea - rework of accordions, 8 new css variables, supports full t…
vingle Sep 12, 2024
d6c0e01
riverlea - 0.9.54
vingle Sep 12, 2024
ea4897f
riverlea - updates variables file to use latest variables
vingle Sep 13, 2024
41a204f
riverlea - WP button border
vingle Sep 13, 2024
5212033
riverlea - implement dark mode setting using client side js
ufundo Sep 12, 2024
e5aeb83
riverlea - remove js based dark mode setting implementation
ufundo Sep 12, 2024
814fc6a
riverlea - implement a dynamic css asset for vars based on dark mode …
ufundo Sep 12, 2024
3e826f4
riverlea - add title colour to support darkmode colour change
vingle Sep 13, 2024
2a875ab
riverlea - add comment for todo for external streams
ufundo Sep 13, 2024
58e7fdf
riverlea - split dark mode settings for backend/frontend
ufundo Sep 13, 2024
07c96bf
riverlea - add group to settings
ufundo Sep 13, 2024
7de58c4
riverlea - metadata/version number, Drupal title fix
vingle Sep 13, 2024
658f8bd
riverlea - Adds new dashlet variables/options, Wellow integration
vingle Sep 13, 2024
8f1d4a0
riverlea - more variables, Wellow integration
vingle Sep 13, 2024
2b67284
riverlea - tabs work for Wellow integration
vingle Sep 14, 2024
97ea23d
riverlea - Dashlet tabs reworked, new variables
vingle Sep 15, 2024
7331fad
riverlea - merges new Wellow variables, removes Wellow for now, bring…
vingle Sep 16, 2024
3aea33e
riverlea - adds missing css variables
vingle Sep 17, 2024
ab7f711
riverlea - v0.10.0 - fixes latest issues in 'UI open list' adds exten…
vingle Sep 24, 2024
61e9281
riverlea - fixes #45 and #48 and some other issues
vingle Sep 24, 2024
6e52f0e
riverlea - v0.10.2 - implements core variables restructuring, as desc…
vingle Sep 25, 2024
3a2da39
riverlea - multiple fixes (alpha list, inline edit hover, contact das…
vingle Sep 26, 2024
f315cb2
riverlea - incoporates some Thames customisations, four new variables…
vingle Sep 26, 2024
665db57
riverlea - Locate extension specific theme directory. Fix crash when …
mattwire Sep 27, 2024
0e48810
riverlea - Revert "Locate extension specific theme directory. Fix cra…
vingle Oct 1, 2024
6dc1bb4
riverlea - Fix for \!25 - actually locate css files
mattwire Oct 1, 2024
68fe213
riverlea - 0.10.5, fixes https://lab.civicrm.org/extensions/riverlea/…
vingle Oct 2, 2024
c9d3905
riverlea - 0.10.6, fixes #49 and #50, improves Advanced Search displa…
vingle Oct 2, 2024
93e53f8
riverlea - Wordpress issues related to css leak - and simplified pref…
vingle Oct 8, 2024
d341d53
riverlea - reworks buttons to use min-height with a padding fallback …
vingle Oct 8, 2024
61535be
riverlea - Fix for 46.1, 46.3, 46.4, 46.5
vingle Oct 8, 2024
3fc6522
riverlea - v0.10.10 - multiple small fixes flagged in #46
vingle Oct 9, 2024
e70eadf
riverlea - major tabs refactor/simplification. See: https://lab.civic…
vingle Oct 10, 2024
35e19da
riverlea - further work from last PR - extends changelog, deletes mor…
vingle Oct 10, 2024
f1f3a94
riverlea - more variable cleanup from 0.10.11 plus empty/variables up…
vingle Oct 11, 2024
c5430a8
riverlea - fixes issue #57 both points (table bg colour and sort icon…
vingle Oct 11, 2024
f3d6b0e
riverlea - adds joomla.css, resolves #53
vingle Oct 11, 2024
65b09d7
riverlea - Changelog
vingle Oct 11, 2024
6917013
riverlea - table header/sort colours, label styling, new variable
vingle Oct 12, 2024
7bf54d9
riverlea - show frontend dark mode setting on main display prefs ( as…
ufundo Oct 11, 2024
4dac61c
riverlea - adds space botential space between butons
vingle Oct 12, 2024
acad6d2
riverlea - Changed font style handling, removed two variables and put…
vingle Oct 12, 2024
cd9b0bd
riverlea - adds two more CSS overrides - CiviMail and Status Page - r…
vingle Oct 12, 2024
0ed3c6b
riverlea - Changes to support #22, improvements to front-end renderin…
vingle Oct 13, 2024
92c904c
riverlea - Add front-end discalimer to ReadMe
vingle Oct 13, 2024
215d717
riverlea - front end, alerts, inline edit
vingle Oct 14, 2024
1680765
riverlea - only queue river.css if current theme is riverlea theme
ufundo Oct 11, 2024
1acdd5d
riverlea - put all the bundle altering together
ufundo Oct 11, 2024
6143871
riverlea - fixes: FB/SK list, SK dashlet padding, SK/FB legend alignm…
vingle Oct 15, 2024
a6ef5df
riverlea - WIP add thames
artfulrobot Sep 18, 2024
7ccdbef
riverlea - Accordions: supported patterns working
artfulrobot Sep 18, 2024
4753f94
riverlea - begin alerts; add README
artfulrobot Sep 19, 2024
b9b15aa
riverlea - buttons
artfulrobot Sep 19, 2024
e13cda1
riverlea - enable all vars \_o_/
artfulrobot Sep 19, 2024
c57b46a
riverlea - Various
artfulrobot Sep 19, 2024
3ca4f44
riverlea - notifications
artfulrobot Sep 19, 2024
390ca1a
riverlea - various
artfulrobot Sep 19, 2024
9cd42ed
riverlea - improve amber
artfulrobot Sep 20, 2024
d769b18
riverlea - contact dashboard starting to come together
artfulrobot Sep 24, 2024
f1e3b12
riverlea - correct vars after rebase; lots on contact summary
artfulrobot Sep 27, 2024
f533d81
riverlea - oops, remove aah as a subrepo
artfulrobot Sep 27, 2024
ab24d03
riverlea - loads of work on tables
artfulrobot Sep 27, 2024
d9a7093
riverlea - accordions, again!
artfulrobot Oct 1, 2024
3a290db
riverlea - beta thames!
artfulrobot Oct 1, 2024
4f57a6e
riverlea - fix after annoying style changes
artfulrobot Oct 1, 2024
f0533cd
riverlea - remove readme from thames
artfulrobot Oct 1, 2024
2710fa8
riverlea - fix tab bg
artfulrobot Oct 1, 2024
a9e9784
riverlea - Add dark mode
artfulrobot Oct 2, 2024
3b0992e
riverlea - alphafilter, colour tweaks
artfulrobot Oct 3, 2024
5482212
riverlea - Changes after @nicol's review
artfulrobot Oct 3, 2024
7fe29cb
riverlea - Fix main light-mode a11y colour contrasts
artfulrobot Oct 9, 2024
0ce12bc
riverlea - add proof-of-concept popover stuff
artfulrobot Oct 11, 2024
b373e1e
riverlea - Revert "add proof-of-concept popover stuff"
artfulrobot Oct 11, 2024
bb925cc
riverlea - spinners and things
artfulrobot Oct 11, 2024
4ec2d28
riverlea - Add Lato woff2 font
artfulrobot Oct 11, 2024
b567a73
riverlea - add sans-serif to the font stack
artfulrobot Oct 11, 2024
429ef75
riverlea - Fixes for darkmode
artfulrobot Oct 11, 2024
df09c25
riverlea - fix hanging indents on sortable icons on table heads
artfulrobot Oct 11, 2024
75be679
riverlea - dark mode dashlets fix
artfulrobot Oct 11, 2024
c02b7aa
riverlea - New Stream: Thames - metadata
vingle Oct 15, 2024
48e3a93
riverlea - move fonts out of stream into shared directory
vingle Oct 15, 2024
6fe25d3
riverlea - metadata + removes some duplicate definitions
vingle Oct 15, 2024
fd0f5c1
riverlea - removes duplicate definition and important declaration
vingle Oct 15, 2024
73d50c9
riverlea - FormBuilder dashlet and tab height
vingle Oct 16, 2024
a1d31c0
riverlea - two new css variables, better Thames integration, more cus…
vingle Oct 16, 2024
ebaf683
riverlea - v1.0.0beta3 - mostly front-end
vingle Oct 17, 2024
3da31bd
riverlea - changelog additions
vingle Oct 17, 2024
35d1303
riverlea - v1.0.0
vingle Oct 17, 2024
d3959be
riverlea - updated streams/empty/_variables.css to reflect latest var…
vingle Oct 18, 2024
7198c47
riverlea - 1.0.2, fixes #60
vingle Oct 21, 2024
1e82eb9
riverlea - 1.0.3 responsive front-end, FormBuilder, some input issues
vingle Oct 22, 2024
13cbecd
riverlea - Date
Oct 18, 2024
87eb47c
riverlea - fix double # in thames var declaration
artfulrobot Oct 23, 2024
46ede1b
riverlea - thames: Fix crm-c-warning colour
artfulrobot Oct 23, 2024
5770ca7
riverlea - thames: Fix alert/error/delete/danger - the reds
artfulrobot Oct 23, 2024
063d89b
riverlea - thames: add more overrides to fix danger/delete colours
artfulrobot Oct 23, 2024
ae93c5f
riverlea - thames: few dark-mode fixes
artfulrobot Oct 23, 2024
5bd2686
riverlea - thames: fix dark mode textx colour
artfulrobot Oct 23, 2024
e6e0787
riverlea - Thames changes & metadata
vingle Oct 24, 2024
aa2534f
riverlea - Re-applies #bootstrap-theme to input, btn and bg to addres…
vingle Oct 29, 2024
2d5b527
riverlea - 1.0.5 - wrap on action links, fixes #64
vingle Oct 29, 2024
52d2d40
riverlea - Fixes regressions from 1.0.4
vingle Oct 29, 2024
54e8f2e
riverlea - 1.0.7, fixes further regressions
vingle Oct 29, 2024
c41d338
riverlea - FontAwesome issue
vingle Oct 29, 2024
1f1ea00
riverlea - 1.0.8: fixes and changes.
vingle Oct 29, 2024
4abb1d8
riverlea - Update info.xml
Oct 30, 2024
179b0c1
riverlea - 1.0.9, various fixes
vingle Oct 30, 2024
b2535b4
riverlea - 1.0.10 - removes missing file - #65, other fixes
vingle Oct 30, 2024
f190b86
riverlea - 1.0.11, addresses issues in #66, #67, #68 and #69 plus others
vingle Oct 31, 2024
c1e1d94
riverlea - 1.0.12: fixes, incl front-end (#71, #72) and css sync with…
vingle Nov 5, 2024
f25093a
riverlea - changes version number to match Civi core
vingle Nov 5, 2024
ac42a08
riverlea - version number to match core, fixes issue #73
vingle Nov 5, 2024
18a280b
riverlea - updates ReadMe
vingle Nov 5, 2024
b49f8ea
riverlea - Adds front-end font resets to favour CMS theme type over S…
vingle Nov 5, 2024
1a5ff1e
riverlea - FIXED metadata - RiverLea version numbering in variables f…
vingle Nov 5, 2024
d56e435
riverlea - correct version number
vingle Nov 6, 2024
23d92b4
riverlea - 5.80.1 - various fixes, including 31433
vingle Nov 8, 2024
98ebf30
riverlea - 5.80.2 - fixes broken datepicker in modales and OpenStreetMap
vingle Nov 11, 2024
bd2156b
riverlea - V0.8.1
Jul 23, 2024
162a35f
riverlea - 5.80.3: 3 fixes, 3 additions, updated ReadMe
vingle Nov 13, 2024
c323ac9
riverlea - fix graft discrepancies
ufundo Nov 14, 2024
34fc8fa
Revert "Package Riverlea theme extension during CiviCRM build"
ufundo Nov 14, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
!/ext/scheduled_communications
!/ext/user_dashboard
!/ext/tellafriend
!/ext/riverlea
backdrop/
bower_components
CRM/Case/xml/configuration
Expand Down
1 change: 0 additions & 1 deletion distmaker/dists/backdrop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dm_install_vendor "$SRC/vendor" "$TRG/vendor"
dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
dm_install_drupal "$SRC/backdrop" "$TRG/backdrop"
dm_install_cvext com.iatspayments.civicrm "$TRG/ext/iatspayments"
dm_install_cvext riverlea "$TRG/ext/riverlea"

dm_h1 "Generate archive (civicrm-*-backdrop.tar.gz)"
cd $TRG/..
Expand Down
1 change: 0 additions & 1 deletion distmaker/dists/drupal7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dm_install_vendor "$SRC/vendor" "$TRG/vendor"
dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
dm_install_drupal "$SRC/drupal" "$TRG/drupal"
dm_install_cvext com.iatspayments.civicrm "$TRG/ext/iatspayments"
dm_install_cvext riverlea "$TRG/ext/riverlea"

dm_h1 "Generate archive (civicrm-*-drupal.tar.gz)"
cd $TRG/..
Expand Down
1 change: 0 additions & 1 deletion distmaker/dists/drupal7_dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dm_install_vendor "$SRC/vendor" "$TRG/vendor"
dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
dm_install_drupal "$DM_DRUPALDIR" "$TRG/drupal"
dm_install_cvext com.iatspayments.civicrm "$TRG/ext/iatspayments"
dm_install_cvext riverlea "$TRG/ext/riverlea"

dm_h1 "Generate archive (civicrm-*-drupal dir)"
cd $TRG
Expand Down
1 change: 0 additions & 1 deletion distmaker/dists/drupal7_sk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dm_install_vendor "$SRC/vendor" "$TRG/vendor"
dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
dm_install_drupal "$SRC/drupal" "$TRG/drupal"
dm_install_cvext com.iatspayments.civicrm "$TRG/ext/iatspayments"
dm_install_cvext riverlea "$TRG/ext/riverlea"

dm_h1 "Prune packages"
# delete packages that distributions on Drupal.org repalce if present
Expand Down
1 change: 0 additions & 1 deletion distmaker/dists/joomla4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ dm_install_packages "$SRC/packages" "$TRG/packages"
dm_install_vendor "$SRC/vendor" "$TRG/vendor"
dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
dm_install_cvext com.iatspayments.civicrm "$TRG/ext/iatspayments"
dm_install_cvext riverlea "$TRG/ext/riverlea"

## WTF: It's so good we'll install it twice!
## (The first is probably extraneous, but there could be bugs dependent on it.)
Expand Down
1 change: 0 additions & 1 deletion distmaker/dists/joomla5bc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dm_install_vendor "$SRC/vendor" "$TRG/vendor"
rm -rf "$TRG/vendor/psr/log"
dm_install_bower "$SRC/bower_components" "$TRG/bower_components"
dm_install_cvext com.iatspayments.civicrm "$TRG/ext/iatspayments"
dm_install_cvext riverlea "$TRG/ext/riverlea"

## WTF: It's so good we'll install it twice!
## (The first is probably extraneous, but there could be bugs dependent on it.)
Expand Down
1 change: 0 additions & 1 deletion distmaker/dists/standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ dm_install_packages "$SRC/packages" "$TRG/core/packages"
dm_install_vendor "$SRC/vendor" "$TRG/core/vendor"
dm_install_bower "$SRC/bower_components" "$TRG/core/bower_components"
dm_install_cvext com.iatspayments.civicrm "$TRG/core/ext/iatspayments"
dm_install_cvext riverlea "$TRG/core/ext/riverlea"
"$SRC/tools/standalone/bin/scaffold" "$TRG"

dm_h1 "Generate archive (civicrm-*-standalone.tar.gz)"
Expand Down
1 change: 0 additions & 1 deletion distmaker/dists/wordpress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dm_install_vendor "$SRC/vendor" "$TRG/civicrm/civicrm/vendor"
dm_install_bower "$SRC/bower_components" "$TRG/civicrm/civicrm/bower_components"
dm_install_wordpress "$SRC/WordPress" "$TRG/civicrm"
dm_install_cvext com.iatspayments.civicrm "$TRG/civicrm/civicrm/ext/iatspayments"
dm_install_cvext riverlea "$TRG/civicrm/civicrm/ext/riverlea"

dm_h1 "Generate archive (civicrm-*-wordpress.zip)"
cd $TRG
Expand Down
4 changes: 4 additions & 0 deletions ext/riverlea/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
css/.DS_store
.DS_store
streams/thames/css/aah
457 changes: 457 additions & 0 deletions ext/riverlea/CHANGELOG.md

Large diffs are not rendered by default.

114 changes: 114 additions & 0 deletions ext/riverlea/Civi/riverlea/DynamicCss.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?php

namespace Civi\riverlea;

use \CRM_riverlea_ExtensionUtil as E;

/**
* This class generates a `river.css` file for Riverlea themes containing
* dynamically generated css content
*
* At the moment this is used to serve the right vars for a given dark mode setting
*
* In the future it might allow other dynamic tweaks
*
* @service riverlea.dynamic_css
*/
class DynamicCss implements \Symfony\Component\EventDispatcher\EventSubscriberInterface, \Civi\Core\Service\AutoServiceInterface {

use \Civi\Core\Service\AutoServiceTrait;

public const CSS_FILE = 'river.css';

public static function getSubscribedEvents() {
return [
'hook_civicrm_buildAsset' => ['buildAssetCss', 0],
];
}

public static function getCssParams(): array {
$darkModeSetting = \CRM_Utils_System::isFrontendPage() ?
\Civi::settings()->get('riverlea_dark_mode_frontend') :
\Civi::settings()->get('riverlea_dark_mode_backend');

return [
'stream' => \Civi::service('themes')->getActiveThemeKey(),
'dark' => $darkModeSetting,
];
}

/**
* Generate asset content (when accessed via AssetBuilder).
*
* @param \Civi\Core\Event\GenericHookEvent $event
*
* @see CRM_Utils_hook::buildAsset()
* @see \Civi\Core\AssetBuilder
*/
public static function buildAssetCss($e) {
if ($e->asset !== static::CSS_FILE) {
return;
}
$e->mimeType = 'text/css';

$params = $e->params;

$stream = $params['stream'] ?? 'empty';

$content = [];

// add base vars for the stream
$content[] = self::getCSSFromFile('_variables.css', $stream);

switch ($params['dark'] ?? NULL) {
case 'light':
// nothing more to do
break;

case 'dark':
// add dark vars unconditionally
$content[] = self::getCSSFromFile('_dark.css', $stream);
break;

case 'inherit':
default:
// add dark vars wrapped inside a media query
$content[] = '@media (prefers-color-scheme: dark) {';
$content[] = self::getCSSFromFile('_dark.css', $stream);
$content[] = '}';
break;
}

$e->content = implode("\n", $content);
}

/**
* Check file exists and return contents or empty string
*
* @param string $cssFileName The name of the css file (eg. _variables.css)
* @param string $stream The name of the riverlea stream (eg. walbrook)
*
* @return string
*/
private static function getCSSFromFile(string $cssFileName, string $stream): string {
$res = \Civi::resources();
$theme = \Civi::service('themes')->get($stream);
$file = '';
// For riverlea themes CSS should be located in stream/streamname/css - prefix="stream/streamname/"
if (isset($theme['prefix'])) {
$file .= $theme['prefix'];
}
// Append css dir and filename so we end up with stream/streamname/css/filename.css
$file .= 'css/' . $cssFileName;
$file = $res->filterMinify($theme['ext'], $file);

// Now get the full path for the css file
$filePath = $res->getPath($theme['ext'], $file);
if (is_file($filePath)) {
// File exists and is a file? Return it!
return file_get_contents($filePath) ?? '';
}
return '';
}

}
Loading