diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 2ce8f47f..f9059835 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -3,8 +3,8 @@ name: Python Linting and Formatting on: [push] jobs: - pylint: - name: Pylint + ruff: + name: Ruff (Linting & Formatting) runs-on: ubuntu-latest defaults: run: @@ -22,52 +22,9 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt -r test_requirements.txt - - name: Analysing the code with pylint + - name: Run ruff linter run: | - pylint $(git ls-files '*.py') --output-format github - - black: - name: Black - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./server - strategy: - matrix: - python-version: ["3.13"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt -r test_requirements.txt - - name: Check code formatting with black - run: | - black --check $(git ls-files '*.py') - - isort: - name: isort - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./server - strategy: - matrix: - python-version: ["3.13"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt -r test_requirements.txt - - name: Check import sorting with isort + ruff check $(git ls-files '*.py') --output-format github + - name: Run ruff formatter run: | - isort --check $(git ls-files '*.py') --profile=black \ No newline at end of file + ruff format --check $(git ls-files '*.py') diff --git a/client/package-lock.json b/client/package-lock.json index 8dcc8435..8a98743d 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,12 +1,12 @@ { "name": "client", - "version": "0.18.0", + "version": "0.18.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "client", - "version": "0.18.0", + "version": "0.18.1", "dependencies": { "bootstrap": "4.6.2", "bootstrap-vue": "2.23.1", @@ -3629,9 +3629,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001727", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz", - "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==", + "version": "1.0.30001757", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001757.tgz", + "integrity": "sha512-r0nnL/I28Zi/yjk1el6ilj27tKcdjLsNqAOZr0yVjWPrSQyHgKI2INaEWw21bAQSv2LXRt1XuCS/GomNpWOxsQ==", "dev": true, "funding": [ { diff --git a/client/package.json b/client/package.json index 74feb636..18ca6d5c 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "client", - "version": "0.18.0", + "version": "0.18.1", "private": true, "scripts": { "build": "vite build", diff --git a/client/src/router/index.js b/client/src/router/index.js index 3dd3b878..45eb3404 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -1,6 +1,5 @@ import Vue from 'vue'; import VueRouter from 'vue-router'; -import HomeView from '../views/HomeView.vue'; Vue.use(VueRouter); @@ -8,7 +7,7 @@ const routes = [ { path: '/', name: 'home', - component: HomeView, + component: () => import('../views/HomeView.vue'), meta: { requiresAuth: false }, }, { diff --git a/client/src/vue_components/show/config/cues/CueEditor.vue b/client/src/vue_components/show/config/cues/CueEditor.vue index 3aaf2cab..4bb7cab2 100644 --- a/client/src/vue_components/show/config/cues/CueEditor.vue +++ b/client/src/vue_components/show/config/cues/CueEditor.vue @@ -254,9 +254,14 @@ export default { DATA: {}, }); }, - decrPage() { + async decrPage() { if (this.currentEditPage > 1) { + const targetPage = this.currentEditPage - 1; + // Load target page from backend + await this.LOAD_SCRIPT_PAGE(targetPage); this.currentEditPage--; + // Pre-load previous page + await this.LOAD_SCRIPT_PAGE(this.currentEditPage - 1); } }, async incrPage() { diff --git a/client/src/vue_components/show/config/cues/ScriptLineCueEditor.vue b/client/src/vue_components/show/config/cues/ScriptLineCueEditor.vue index 2d1cb478..c7c526e7 100644 --- a/client/src/vue_components/show/config/cues/ScriptLineCueEditor.vue +++ b/client/src/vue_components/show/config/cues/ScriptLineCueEditor.vue @@ -46,6 +46,7 @@ >