Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
82de27d
chore(ui): update tailwind to v4
pujitm Jan 24, 2025
236e372
feat(ui): add vite config for web components
pujitm Jan 24, 2025
a67c52a
feat(ui): support `<style>` in `.ce.vue` components
pujitm Jan 24, 2025
11a2774
checkpoint - appears on-server, but incorrect style application
pujitm Jan 25, 2025
98c1a59
Revert "chore(ui): update tailwind to v4"
pujitm Jan 25, 2025
b323940
feat(ui): expose webgui-compatible web-components
pujitm Jan 25, 2025
1366610
feat(ui): add unraid-toaster component
pujitm Jan 27, 2025
1add74c
chore(ui): hash web component build artifacts
pujitm Jan 28, 2025
a580c7e
chore: add type def for global toast function
pujitm Jan 29, 2025
3452874
refactor: debug based on env in registration.ts
pujitm Jan 29, 2025
a38e72a
feat: add DefaultPageLayout notication modifications to the api
pujitm Jan 29, 2025
fed3a7b
refactor: `web-components-extractor` & ui vite config for compatibility
pujitm Jan 29, 2025
4880dea
chore(ui): add npm script to build web components
pujitm Jan 29, 2025
461b828
feat: build webcomps
elibosley Jan 29, 2025
9ef7056
fix(api): parse cookies on initial web socket connection
pujitm Jan 30, 2025
f19ba39
feat(web): toast on incoming notifications
pujitm Jan 30, 2025
b7832f6
refactor(api): rm webgui toasting logic
pujitm Jan 30, 2025
11bc8ed
fix(api): flaky test
pujitm Jan 30, 2025
daa991d
refactor(web): notification toast code
pujitm Jan 30, 2025
5a650c7
feat: extract node to usr/local/node
elibosley Jan 30, 2025
bb9b12b
feat: force symlink
elibosley Jan 30, 2025
7117fc0
feat: disable watcher on init for api keys
elibosley Jan 30, 2025
5c04ee8
feat: extract directly to /usr/local
elibosley Jan 30, 2025
c9b2731
feat: add node to path
elibosley Jan 30, 2025
6841ad5
fix: don't use npm link
elibosley Jan 30, 2025
0fc61fc
fix: disable logs
elibosley Jan 30, 2025
1b33c6b
feat: source bashrc before install
elibosley Jan 30, 2025
c910401
tmp: source profile before unraid-api start
pujitm Jan 30, 2025
462a0a1
refactor(api): cookie parsing in websocket requests
pujitm Jan 30, 2025
33d4d2e
refactor(api): mv notification.page changes into api's file mod
pujitm Jan 30, 2025
ff35bf4
quality of life tweaks
pujitm Jan 30, 2025
d2edf5c
fix: update default page mod snapshot
pujitm Jan 30, 2025
321dc2d
fix(api): improve notifications.page mod regexes
pujitm Jan 30, 2025
8d572c8
feat: sikko mode
elibosley Jan 30, 2025
44593d7
fix: package-lock issue
elibosley Jan 30, 2025
a461d35
fix: remove console log and come coderabbit suggestions
elibosley Jan 30, 2025
c25aafd
fix: remove unused dependencies
elibosley Jan 31, 2025
1e4c9a2
feat: eslint fixes
elibosley Jan 31, 2025
5c042f4
feat: prettier enabled
elibosley Jan 31, 2025
437a658
fix: redundant pino-pretty config
elibosley Jan 31, 2025
cb5dc6f
fix: log exit hook
elibosley Jan 31, 2025
cf0286a
fix: remove commented promise
elibosley Jan 31, 2025
4d63c0a
fix: extra sspaces
elibosley Jan 31, 2025
ce8a73f
fix: unused import
elibosley Jan 31, 2025
716a49a
fix: unnecessary packages
elibosley Jan 31, 2025
42cb662
feat: error handling in WC extractor
elibosley Jan 31, 2025
0fb15a9
Update unraid-ui/tailwind.config.ts
elibosley Jan 31, 2025
f70184c
fix: don't add multiple toasters
elibosley Jan 31, 2025
3617518
fix: newline
elibosley Jan 31, 2025
0107e5e
feat: install cookie
elibosley Jan 31, 2025
3fc2732
chore: unused deps removed
elibosley Jan 31, 2025
6c91679
fix: update systeminformation
elibosley Jan 31, 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
74 changes: 34 additions & 40 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

😤 Your YAML has more trailing spaces than a comet has dust!

Clean up those trailing spaces on lines 113, 121, 124, and 127. This isn't amateur hour!

-      - name: Checkout repo  
+      - name: Checkout repo
-          node-version-file: ".nvmrc"  
+          node-version-file: ".nvmrc"
-      - name: Install dependencies  
+      - name: Install dependencies
-      - name: Build  
+      - name: Build

Also applies to: 121-121, 124-124, 127-127

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 113-113: trailing spaces

(trailing-spaces)

- 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]
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
17 changes: 15 additions & 2 deletions api/.eslintrc.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

import type { Linter } from 'eslint';
import eslint from '@eslint/js';
import noRelativeImportPaths from 'eslint-plugin-no-relative-import-paths';
import prettier from 'eslint-plugin-prettier';
import tseslint from 'typescript-eslint';

export default tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended, {
plugins: {
'no-relative-import-paths': noRelativeImportPaths,
prettier: prettier,
},
rules: {
'@typescript-eslint/no-redundant-type-constituents': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
Expand All @@ -17,5 +21,14 @@ export default tseslint.config(eslint.configs.recommended, ...tseslint.configs.r
'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 1 }],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/no-absolute-path': 'off',
'import/prefer-default-export': 'off',
'no-relative-import-paths/no-relative-import-paths': [
'error',
{ allowSameFolder: false, rootDir: 'src', prefix: '@app' },
],
'prettier/prettier': 'error',
},
});
Loading
Loading