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

[WIP] Update Manager Refactor #1259

Draft
wants to merge 110 commits into
base: wip/support-uploading-packages
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
f698d3a
Init wip
jaxwilko Nov 29, 2024
80ea95b
Allow create:migration --update flag for models without fields.yaml
LukeTowers Dec 3, 2024
f67cb2c
Bump vite and laravel vite plugin versions (#1260)
jaxwilko Dec 3, 2024
9546fbd
Work in progress... do not try and run it :(
jaxwilko Dec 3, 2024
b6ab161
Add support for showTotals in the Lists widget (#1262)
LukeTowers Dec 3, 2024
d3b2ccb
Avoid Vite generating an extra `assets` folder in `assets/dist` (#1264)
damsfx Dec 4, 2024
4bdab41
Allow column format values to be used when rending a column's total
LukeTowers Dec 4, 2024
4a31245
Force mirror absolute paths on Windows (#1265)
jaxwilko Dec 4, 2024
b5ccea7
Added fix to ensure escaped backslash paths are preserved in DB_DATAB…
jaxwilko Dec 4, 2024
abdb18f
Added winter/packager + ovberrides and bumped php version
jaxwilko Dec 6, 2024
b80e34f
Added wip
jaxwilko Dec 6, 2024
ac5733c
Added fix to allow install to create files
jaxwilko Dec 6, 2024
b22d11b
Added objects for source types
jaxwilko Dec 6, 2024
65ecde4
Scheduler timezone in app.php (#1268)
goldmont Dec 6, 2024
a7f9ce5
Remove redundant backend route (#1258)
mjauvin Dec 7, 2024
6c4bbe8
WIP
jaxwilko Dec 9, 2024
d2d55ef
Recompile assets
bennothommo Dec 19, 2024
5d705b9
Added wip
jaxwilko Dec 19, 2024
20a73ff
Fix TagList formwidget (#1267)
mjauvin Dec 19, 2024
db52bcd
Added fix for installing specific package
jaxwilko Dec 19, 2024
f250393
Added abstract stubs
jaxwilko Dec 19, 2024
be09f6c
Added support for updating composer plugins
jaxwilko Dec 19, 2024
d9830f3
Added wip
jaxwilko Dec 19, 2024
2c1d4ca
Migrated core code to storm
jaxwilko Dec 20, 2024
68721cf
Added wip
jaxwilko Dec 20, 2024
dd3fc6c
Added wip
jaxwilko Dec 30, 2024
644052f
Moved commands into directories
jaxwilko Dec 30, 2024
69b11d8
Refactored stuff
jaxwilko Dec 30, 2024
fc7e32a
Added theme extension logic
jaxwilko Dec 30, 2024
3255d4a
Remove empty item for all taglist modes (#1276)
mjauvin Jan 2, 2025
1391495
Added market place support
jaxwilko Jan 2, 2025
a1b7c3a
Added plugin code detection from path using child process
jaxwilko Jan 2, 2025
312e6bd
Added support for installing from arbitary paths
jaxwilko Jan 3, 2025
56ead48
Added theme successfully installed message
jaxwilko Jan 3, 2025
f4b67bb
Added plugin successfully installed message and fixed no updates requ…
jaxwilko Jan 3, 2025
19a09cd
Added more messages to improve ux
jaxwilko Jan 3, 2025
8593b0b
Added wip
jaxwilko Jan 3, 2025
e6dc1ad
Hooked up old update checker ui with new update system
jaxwilko Jan 3, 2025
4e1f7e8
Update composer.json
LukeTowers Jan 4, 2025
43bbaf2
Moved stubs for create commands
jaxwilko Jan 4, 2025
fced1de
Added better reporting for module upgrades
jaxwilko Jan 4, 2025
f144fda
Removed stubbed function as implemented in parent class
jaxwilko Jan 4, 2025
bc61e32
Added default return
jaxwilko Jan 4, 2025
1d268b0
Added fix to ensure upgrades succeed for uninstalled plugins
jaxwilko Jan 4, 2025
62ec335
Added fix for reporting
jaxwilko Jan 4, 2025
bfc3cd1
Added support for preserving modules
jaxwilko Jan 4, 2025
9fa2063
Removed call to setOutputNotes
jaxwilko Jan 4, 2025
ebd5d2d
Added fixes for tests
jaxwilko Jan 4, 2025
c2b62c2
Merge branch 'wip/support-uploading-packages-update-manager-changes' …
jaxwilko Jan 4, 2025
9395f2b
Removed packager from winter deps
jaxwilko Jan 4, 2025
9a5055f
Added style fixes
jaxwilko Jan 4, 2025
bb953e9
Reverted php requirement change
jaxwilko Jan 4, 2025
43acf5c
Added findThemesInPath method
jaxwilko Jan 4, 2025
5de0809
Added method for unpacking a zip and returning all sources inside
jaxwilko Jan 4, 2025
e3aeefa
Fix typo
LukeTowers Jan 5, 2025
729e46e
Moved logic into parent
jaxwilko Jan 5, 2025
6900cae
Merge branch 'wip/support-uploading-packages-update-manager-changes' …
jaxwilko Jan 5, 2025
d8d9850
Apply suggestions from code review
jaxwilko Jan 5, 2025
4e33930
Added notice when cms.disableCoreUpdates is enabled
jaxwilko Jan 5, 2025
db75757
Removed misleading comment
jaxwilko Jan 5, 2025
c8bbe35
Added fix to refer to property instead of method
jaxwilko Jan 5, 2025
8da2212
Added use of plugin manager to check for plugin code
jaxwilko Jan 5, 2025
f950ce3
Removed old update manager
jaxwilko Jan 5, 2025
16a4841
Removed incorrect imports
jaxwilko Jan 5, 2025
f9773db
Removed unused class
jaxwilko Jan 5, 2025
1120f01
Made plugin guessing even simplier
jaxwilko Jan 5, 2025
09a7a88
Apply suggestions from code review
jaxwilko Jan 5, 2025
d328417
Wip
jaxwilko Jan 6, 2025
9d27012
Update modules/system/controllers/updates/assets/src/components/Produ…
LukeTowers Jan 7, 2025
bd3ce1e
Update modules/system/controllers/updates/_install_plugins.php
LukeTowers Jan 7, 2025
a8540d0
Moved eslint to prevent compiled js being linted
jaxwilko Jan 7, 2025
8959acd
Merge branch 'wip/support-uploading-packages-update-manager-changes' …
jaxwilko Jan 7, 2025
d75512c
Added fix for eslint ignore
jaxwilko Jan 7, 2025
c084c6c
Fix using vite packages when they're ignored from compiling (#1284)
LukeTowers Jan 8, 2025
dbbda7c
Report missing version.yaml as no update rather than failed update
jaxwilko Jan 8, 2025
f062d51
Added fix for eslint
jaxwilko Jan 8, 2025
a1c5214
Added compiled js
jaxwilko Jan 8, 2025
22aaef0
Re-added old updates.js file
jaxwilko Jan 8, 2025
60a7089
Added install support for plugins
jaxwilko Jan 8, 2025
c9d559a
Minor
bennothommo Jan 13, 2025
206e738
Correct return types for CMS objects
bennothommo Jan 13, 2025
3c77118
Added logic to remove composer plugin on uninstall
jaxwilko Jan 15, 2025
93e0e84
Added fix to better handle caching of local data
jaxwilko Jan 20, 2025
b9ad3f8
Improved ui
jaxwilko Jan 20, 2025
85362e7
Use Laravel's Windows-Friendly symlinking
LukeTowers Jan 22, 2025
a910521
Purge FlashBag after it has been read (#1299)
mjauvin Jan 25, 2025
b7859cd
Make entire mediafinder field clickable when mode=file (#1296)
mjauvin Jan 25, 2025
7224239
Fix TagList returning an object in array mode (#1294)
thienvu18 Jan 25, 2025
9993e75
Only make recordfinder clickable if not disabled (#1295)
mjauvin Jan 25, 2025
fb2e6e3
Clarify decision on adding detected packages
LukeTowers Jan 25, 2025
11087ef
Allow users to zoom the backend on mobile (#1301)
mjauvin Jan 28, 2025
9f38dff
Repeater: Always send a value in the Form data (#1300)
mjauvin Jan 28, 2025
5d8aa4d
Improved compatibility with modern PHP
LukeTowers Jan 29, 2025
df9dbe9
Improve factory stub
LukeTowers Feb 1, 2025
25a2cdb
Update README.stub for tailwind theme scaffold to reflect usage of vite
LukeTowers Feb 1, 2025
bb8080f
Fix stub variables
LukeTowers Feb 1, 2025
37d0c36
Support list of postbackHanderName values in the Table widget (#560)
der-On Feb 4, 2025
c231c40
Add allowList functionality to Twig security policy (#1293)
LukeTowers Feb 5, 2025
05d2a84
Add `test` alias for `winter:test`
LukeTowers Feb 5, 2025
154a8c8
Update Winter's branding colors (#93)
LukeTowers Feb 5, 2025
2139f0e
Support customizing the Vite build directory (#1272)
truechernyshov Feb 5, 2025
bcd8aa7
Bump cache action version to fix tests (#1305)
jaxwilko Feb 11, 2025
0970906
Added support for creating module asset configs
jaxwilko Feb 12, 2025
00e32bd
Added vite for updates/install page
jaxwilko Feb 12, 2025
81a051f
Added missing files for module configging
jaxwilko Feb 12, 2025
7951a22
Added better log viewing (#1303)
jaxwilko Feb 13, 2025
53f10c6
Add support for React (#1304)
LukeTowers Feb 13, 2025
0ae1eb2
Added ui fixes to install page
jaxwilko Feb 13, 2025
cfba2f3
Added theme upload string
jaxwilko Feb 13, 2025
a5b92ab
Manual develop merge
jaxwilko Feb 13, 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
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
key: ${{ env.key }}

- name: Cache extensions
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ steps.extcache.outputs.key }}
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"require": {
"php": "^8.0.2",
"winter/storm": "dev-develop as 1.2",
"winter/storm": "dev-wip/support-uploading-packages-update-manager-changes as 1.2",
"winter/wn-system-module": "dev-develop",
"winter/wn-backend-module": "dev-develop",
"winter/wn-cms-module": "dev-develop",
Expand Down
15 changes: 14 additions & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
*/

'asset_url' => env('ASSET_URL', null),

/*
|--------------------------------------------------------------------------
| Temporary Path
Expand Down Expand Up @@ -195,6 +195,19 @@

'timezone' => 'UTC',

/*
|--------------------------------------------------------------------------
| Scheduler Timezone
|--------------------------------------------------------------------------
|
| This property specifies the default timezone for your application's
| scheduled tasks. You can set it independently of the application's
| default timezone to ensure that schedules run at the desired local time.
|
*/

'schedule_timezone' => 'UTC',

/*
|--------------------------------------------------------------------------
| Application Locale Configuration
Expand Down
3 changes: 2 additions & 1 deletion modules/backend/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
use System\Classes\MailManager;
use System\Classes\SettingsManager;
use System\Classes\UpdateManager;
use Winter\Storm\Foundation\Extension\WinterExtension;
use Winter\Storm\Support\Facades\Config;
use Winter\Storm\Support\Facades\Flash;
use Winter\Storm\Support\ModuleServiceProvider;

class ServiceProvider extends ModuleServiceProvider
class ServiceProvider extends ModuleServiceProvider implements WinterExtension
{
/**
* Register the service provider.
Expand Down
141 changes: 70 additions & 71 deletions modules/backend/assets/css/winter.css

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions modules/backend/assets/images/dashboard-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions modules/backend/assets/images/media-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions modules/backend/assets/images/tab-shape.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions modules/backend/assets/less/core/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@color-border: #cccccc;
@color-border-light: #e1e1e1;

@color-mainmenu: #000000;
@color-mainmenu: #151515;
@color-mainmenu-inactive: rgba(255,255,255,.6);
@color-mainmenu-active: #ffffff;
@color-mainmenu-active-bg: #262626;
Expand Down Expand Up @@ -93,10 +93,10 @@
@color-filelist-hero-active-bg: @highlight-active-bg;
@color-filelist-hero-active-text: @highlight-active-text;

@color-fancy-master-tabs-bg: #d35400;
@color-fancy-master-tabs-bg: @brand-secondary-darker;
@color-fancy-master-tabs-active-text: #ffffff;
@color-fancy-master-tabs-inactive-text: rgba(255, 255, 255, .35);
@color-fancy-master-panel-bg: #d35400;
@color-fancy-master-panel-bg: @brand-secondary-darker;

@color-fancy-secondary-tabs-bg: #475354;
@color-fancy-secondary-tabs-active-text: #ffffff;
Expand All @@ -111,9 +111,9 @@
@color-fancy-form-tabless-fields-bg: @brand-secondary;
@color-fancy-form-label: rgba(255, 255, 255, .5);
@color-fancy-form-text: #ffffff;
@color-fancy-form-text-selection: #d35400;
@color-fancy-form-text-selection: @brand-secondary-darker;
@color-fancy-form-placeholder: rgba(255, 255, 255, .5);
@color-fancy-form-inactive-tab: #b9530f;
@color-fancy-form-inactive-tab: #2c9cb9;

@color-sortable-caret: #999999;
@color-sortable-active: @brand-secondary;
Expand Down Expand Up @@ -150,4 +150,4 @@
// --------------------------------------------------

@menu-breakpoint-min: 770px;
@menu-breakpoint-max: (@menu-breakpoint-min - 1);
@menu-breakpoint-max: (@menu-breakpoint-min - 1);
4 changes: 0 additions & 4 deletions modules/backend/assets/less/layout/fancylayout.less
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,6 @@ body.fancy-layout .master-tabs.control-tabs,
}
}

.tab-collapse-icon.primary {
color: #808c8d;
}

&.primary-collapsed {
.tab-collapse-icon.primary {
color: white;
Expand Down
6 changes: 3 additions & 3 deletions modules/backend/assets/less/layout/sidepanel.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
}

.sidepanel-content-header {
background: #d35400;
background: @brand-secondary-darker;
color: white;
font-size: 15px;
padding: 12px 20px 13px;
position: relative;

&:after {
.triangle(down, 15px, 8px, #d35400);
.triangle(down, 15px, 8px, @brand-secondary-darker);
position: absolute;
left: 14px;
bottom: -8px;
Expand Down Expand Up @@ -94,4 +94,4 @@ body.display-side-panel {
#layout-side-panel .fix-button {
display: none;
}
}
}
Loading
Loading