mirror of
https://github.com/unraid/api.git
synced 2026-01-10 10:40:04 -06:00
feat(ui): webgui-compatible web component library (#1075)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Eli Bosley <ekbosley@gmail.com> - **CI/CD** - Updated GitHub Actions workflow to build Unraid UI Web Components. - Adjusted artifact naming and download configurations. - **Web Components** - Added new web components and registration mechanism. - Implemented toast notifications. - Enhanced UI component library. - **Notifications** - Added real-time notification subscription. - Created notification settings page. - Implemented notification toast system. - **API Improvements** - Refactored GraphQL schema loading. - Updated authentication and cookie handling. - Improved error logging and server initialization. - **Development Tools** - Updated ESLint configuration. - Enhanced import path management. - Added new development dependencies.
This commit is contained in:
74
.github/workflows/main.yml
vendored
74
.github/workflows/main.yml
vendored
@@ -101,42 +101,35 @@ jobs:
|
||||
name: unraid-api
|
||||
path: ${{ github.workspace }}/api/deploy/release/*.tgz
|
||||
|
||||
# build-unraid-ui:
|
||||
# name: Build Unraid UI Library
|
||||
# defaults:
|
||||
# run:
|
||||
# working-directory: unraid-ui
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout repo
|
||||
# uses: actions/checkout@v4
|
||||
#
|
||||
# - name: Install node
|
||||
# uses: actions/setup-node@v4
|
||||
# with:
|
||||
# cache: "npm"
|
||||
# cache-dependency-path: |
|
||||
# unraid-ui/package-lock.json
|
||||
# node-version-file: ".nvmrc"
|
||||
#
|
||||
# - name: Install dependencies
|
||||
# run: npm install
|
||||
#
|
||||
# - name: Build
|
||||
# run: npm run build
|
||||
#
|
||||
# - name: Make Built Node Artifact
|
||||
# run: |
|
||||
# mkdir unraid-ui-dist
|
||||
# mv dist/ unraid-ui-dist/dist/
|
||||
# mv package.json unraid-ui-dist/package.json
|
||||
# ls unraid-ui-dist
|
||||
#
|
||||
# - name: Upload Artifact to Github
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: unraid-ui
|
||||
# path: unraid-ui/unraid-ui-dist
|
||||
build-unraid-ui-webcomponents:
|
||||
name: Build Unraid UI Library (Webcomponent Version)
|
||||
defaults:
|
||||
run:
|
||||
working-directory: unraid-ui
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
cache: "npm"
|
||||
cache-dependency-path: |
|
||||
unraid-ui/package-lock.json
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build
|
||||
run: npm run build:wc
|
||||
|
||||
- name: Upload Artifact to Github
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: unraid-wc-ui
|
||||
path: unraid-ui/dist/
|
||||
|
||||
build-web:
|
||||
# needs: [build-unraid-ui]
|
||||
@@ -190,11 +183,11 @@ jobs:
|
||||
- name: Upload build to Github artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: unraid-web
|
||||
name: unraid-wc-rich
|
||||
path: web/.nuxt/nuxt-custom-elements/dist/unraid-components
|
||||
|
||||
build-plugin:
|
||||
needs: [build-test-api, build-web]
|
||||
needs: [build-test-api, build-web, build-unraid-ui-webcomponents]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: plugin
|
||||
@@ -206,11 +199,12 @@ jobs:
|
||||
timezoneLinux: "America/Los_Angeles"
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Download unraid web components
|
||||
- name: Download Unraid Web Components
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: unraid-web
|
||||
pattern: unraid-wc-*
|
||||
path: ./plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components
|
||||
merge-multiple: true
|
||||
- name: Build Plugin
|
||||
run: |
|
||||
cd source/dynamix.unraid.net
|
||||
|
||||
Reference in New Issue
Block a user