diff --git a/cypress/e2e/partner-admin/default-tests/testProgressReportFiltering.spec.cy.js b/cypress/e2e/partner-admin/default-tests/testProgressReportFiltering.spec.cy.js index cecf1a260..2d07767a9 100644 --- a/cypress/e2e/partner-admin/default-tests/testProgressReportFiltering.spec.cy.js +++ b/cypress/e2e/partner-admin/default-tests/testProgressReportFiltering.spec.cy.js @@ -17,31 +17,39 @@ // const testUserList = Cypress.env('testUserList'); // const testAssignments = Cypress.env('testAssignmentsList'); // const headers = ['School']; -// + // function checkUrl() { // cy.login(testPartnerAdminUsername, testPartnerAdminPassword); // cy.navigateTo('/'); // cy.url({ timeout: 3 * timeout }).should('eq', `${baseUrl}/`); // } + // + // function clickProgressButton(adminId) { // cy.get('button', { timeout: timeout }).contains('Progress').first().click(); // cy.url({ timeout: 3 * timeout }).should('eq', `${baseUrl}/administration/${adminId}/district/${testDistrictId}`); // } + // + // function setFilterBySchool(school) { // cy.get('[data-cy="filter-by-school"]', { timeout: timeout }).click(); // cy.get('ul > li', { timeout: timeout }).contains(school).click(); // cy.wait(0.05 * timeout); // } + // + // function setFilterByGrade(grade) { // cy.get('[data-cy="filter-by-grade"]', { timeout: timeout }).click(); // cy.get('ul > li', { timeout: timeout }).contains(grade).click(); // cy.get('body').type('{esc}'); // cy.wait(0.05 * timeout); // } + // + // function setFilterByProgressCategory(header, category) { // cy.contains('div.p-column-header-content', header).find('button').click(); // cy.get('[data-cy="progress-filter-dropdown"]', { timeout: timeout }).click(); @@ -50,6 +58,7 @@ // cy.get('button').contains('Apply').click(); // cy.wait(0.05 * timeout); // } + // // function checkTableColumn(headers, value) { // cy.get('[data-cy="roar-data-table"] thead th').then(($header) => { @@ -58,6 +67,7 @@ // headers.forEach((header) => { // const headerIndex = tableHeaders.indexOf(header); // + // if (headerIndex !== -1) { // cy.get('[data-cy="roar-data-table"] tbody tr').each(($row) => { // cy.wrap($row) @@ -71,6 +81,7 @@ // }); // }); // } + // // function checkProgressTags(headers) { // cy.get('[data-cy="roar-data-table"] thead th').then(($header) => { @@ -79,6 +90,7 @@ // headers.forEach((header) => { // const headerIndex = tableHeaders.indexOf(header); // + // if (headerIndex !== -1) { // cy.get('[data-cy="roar-data-table"] tbody tr', { timeout: timeout }).each(($row) => { // cy.wrap($row) @@ -92,7 +104,9 @@ // }); // }); // } + // + // describe('The partner admin can view progress reports for a given administration and filter by school.', () => { // it('Selects an administration and views its score report, then accesses the filter bar to filter by school.', () => { // checkUrl(); @@ -102,7 +116,9 @@ // checkTableColumn(headers, 'Cypress Test School'); // }); // }); + // + // describe('The partner admin can view progress reports for a given administration and filter by grade', () => { // it('Selects an administration, views its progress report, then accesses the filter bar to filter by grade', () => { // checkUrl(); @@ -112,7 +128,9 @@ // checkTableColumn(['Grade'], '1'); // }); // }); + // + // describe('The partner admin can view progress reports for a given administration and filter by both school and grade', () => { // it('Selects an administration, views its progress report, then accesses the filter bar to filter by both school grade', () => { // checkUrl(); @@ -124,7 +142,9 @@ // checkTableColumn(['Grade'], '1'); // }); // }); + // + // describe('The partner admin can view progress reports for a given administration and filter by progress status', () => { // it('Selects an administration, views its score report, then accesses the column filter to filter by progress status', () => { // checkUrl(); @@ -134,7 +154,9 @@ // checkTableColumn(['Username'], 'CypressTestStudent0'); // }); // }); + // + // describe('The partner admin can view progress reports for a given administration and filter by grade and progress status', () => { // it('Selects an administration, views its score report, then accesses the column filter to filter by grade and support level', () => { // checkUrl(); @@ -145,7 +167,9 @@ // checkTableColumn(['Username'], 'CypressTestStudent0'); // }); // }); + // + // describe('The partner admin can view progress reports for a given administration and a not applicable filter returns an empty message', () => { // it('Selects an administration, views its score report, then accesses the column filter to filter by a non-returnable filter', () => { // checkUrl(); diff --git a/cypress/e2e/partner-admin/default-tests/testScoreReportFiltering.cy.js b/cypress/e2e/partner-admin/default-tests/testScoreReportFiltering.cy.js index 607047607..f7642e534 100644 --- a/cypress/e2e/partner-admin/default-tests/testScoreReportFiltering.cy.js +++ b/cypress/e2e/partner-admin/default-tests/testScoreReportFiltering.cy.js @@ -12,30 +12,38 @@ // const timeout = Cypress.env('timeout'); // const baseUrl = Cypress.env('baseUrl'); // const headers = ['School']; + // + // function checkUrl() { // cy.login(testPartnerAdminUsername, testPartnerAdminPassword); // cy.navigateTo('/'); // cy.url({ timeout: timeout }).should('eq', `${baseUrl}/`); // } + // + // function clickScoreButton(adminId) { // cy.get('button', { timeout: timeout }).contains('Scores').first().click(); // cy.url({ timeout: timeout }).should('eq', `${baseUrl}/scores/${adminId}/district/${roarDemoDistrictId}`); // } + // + // function setFilterBySchool(school) { // cy.get('[data-cy="filter-by-school"]', { timeout: timeout }).click(); // cy.get('ul > li', { timeout: timeout }).contains(school).click(); // cy.wait(0.05 * timeout); // } + // + // function setFilterByGrade(grade) { // cy.get('[data-cy="filter-by-grade"]', { timeout: timeout }).click(); // cy.get('ul > li', { timeout: timeout }).contains(grade).click(); // cy.wait(0.05 * timeout); // } -// + // function setFilterByProgressCategory(header, category) { // cy.contains('div.p-column-header-content', header).find('button').click(); // cy.get('[data-cy="score-filter-dropdown"]', { timeout: timeout }).click(); @@ -43,7 +51,9 @@ // cy.get('button').contains('Apply').click(); // cy.wait(0.05 * timeout); // } + // + // function setFilterByScoreCategory(header, category) { // cy.contains('div.p-column-header-content', header).find('button').click(); // cy.get('[data-cy="score-filter-dropdown"]', { timeout: timeout }).click(); @@ -51,6 +61,7 @@ // cy.get('button').contains('Apply').click(); // cy.wait(0.05 * timeout); // } + // // function checkTableColumn(headers, value) { // cy.get('[data-cy="roar-data-table"] thead th').then(($header) => { @@ -59,6 +70,7 @@ // headers.forEach((header) => { // const headerIndex = tableHeaders.indexOf(header); // + // if (headerIndex !== -1) { // cy.get('[data-cy="roar-data-table"] tbody').each(($row) => { // cy.wrap($row).find('tr').should('contain', value); @@ -67,7 +79,7 @@ // }); // }); // } -// + // describe('The partner admin can view score reports for a given administration and filter by school.', () => { // it('Selects an administration and views its score report, then accesses the filter bar to filter by school.', () => { // checkUrl(); @@ -77,7 +89,7 @@ // checkTableColumn(headers, 'Cypress Test School'); // }); // }); -// + // describe('The partner admin can view score reports for a given administration and filter by grade', () => { // it('Selects an administration, views its score report, then accesses the filter bar to filter by grade', () => { // checkUrl(); @@ -87,7 +99,7 @@ // checkTableColumn(['Grade'], '3'); // }); // }); -// + // describe('The partner admin can view score reports for a given administration and filter by both school and grade', () => { // it('Selects an administration, views its score report, then accesses the filter bar to filter by both school grade', () => { // checkUrl(); @@ -99,7 +111,7 @@ // checkTableColumn(['Grade'], '5'); // }); // }); -// + // describe('The partner admin can view score reports for a given administration and filter by support level', () => { // it('Selects an administration, views its score report, then accesses the column filter to filter by support level', () => { // checkUrl(); @@ -109,7 +121,7 @@ // checkTableColumn(['Username'], 'CypressTestStudent0'); // }); // }); -// + // describe('The partner admin can view score reports for a given administration filter by school, grade, and progress status: completed', () => { // it('Selects an administration, views its score report, then accesses the column filter to filter by school, grade, and completed', () => { // checkUrl(); @@ -121,7 +133,7 @@ // checkTableColumn(['Username'], 'CypressTestStudent0'); // }); // }); -// + // describe('The partner admin can view score reports for a given administration and filter by Assessed', () => { // it('Selects an administration, views its score report, then accesses the column filter to filter by assessed', () => { // checkUrl(); @@ -131,7 +143,7 @@ // checkTableColumn(['Username'], 'CypressTestStudent0'); // }); // }); -// + // describe('The partner admin can view score reports for a given administration and a not applicable filter returns an empty message', () => { // it('Selects an administration, views its score report, then accesses the column filter to filter by a non-returnable filter', () => { // checkUrl(); diff --git a/package-lock.json b/package-lock.json index 1130d3ac3..61b8a2129 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@bdelab/roam-fluency": "1.11.26", "@bdelab/roar-firekit": "^8.0.8", - "@bdelab/roar-letter": "1.11.5", + "@bdelab/roar-letter": "1.11.8", "@bdelab/roar-multichoice": "^1.11.3", "@bdelab/roar-pa": "2.2.4", "@bdelab/roar-sre": "1.15.9", @@ -88,7 +88,6 @@ "vite-plugin-favicons-inject": "^2.2.0", "vite-plugin-mkcert": "^1.17.5", "vite-plugin-node-polyfills": "^0.22.0", - "vite-plugin-pwa": "^0.20.0", "vitest": "^2.0.5", "workbox-build": "^7.1.1", "workbox-core": "^7.1.0", @@ -1882,9 +1881,10 @@ } }, "node_modules/@bdelab/roar-letter": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@bdelab/roar-letter/-/roar-letter-1.11.5.tgz", - "integrity": "sha512-8wUZSajJbDfLIOBcv/e+CbhVQvPnvidhVcRf/gA7RhVr0S959ldql1jO5tBKUyzU0jldha2X7zeqbvcb/KtpNA==", + "version": "1.11.8", + "resolved": "https://registry.npmjs.org/@bdelab/roar-letter/-/roar-letter-1.11.8.tgz", + "integrity": "sha512-y0VJ6mIYf0KkDZ1tvt9aGWFSokF9dhuJv74vf9yiewIFQxJHft/LIWfjscvW/Hpe9YUwJuHjJ0Liq129jbA1Qg==", + "license": "Stanford Academic Software License for ROAR", "dependencies": { "@bdelab/jscat": "^4.0.0", "@bdelab/roar-firekit": "^4.7.0", @@ -24798,6 +24798,7 @@ }, "node_modules/npm/node_modules/lodash._baseindexof": { "version": "3.1.0", + "extraneous": true, "inBundle": true, "license": "MIT" }, @@ -24822,16 +24823,19 @@ }, "node_modules/npm/node_modules/lodash._bindcallback": { "version": "3.0.1", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/lodash._cacheindexof": { "version": "3.0.2", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/lodash._createcache": { "version": "3.1.2", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -24840,6 +24844,7 @@ }, "node_modules/npm/node_modules/lodash._getnative": { "version": "3.9.1", + "extraneous": true, "inBundle": true, "license": "MIT" }, @@ -24850,6 +24855,7 @@ }, "node_modules/npm/node_modules/lodash.restparam": { "version": "3.6.1", + "extraneous": true, "inBundle": true, "license": "MIT" }, @@ -34416,45 +34422,6 @@ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", "dev": true }, - "node_modules/tinyglobby": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.5.tgz", - "integrity": "sha512-Dlqgt6h0QkoHttG53/WGADNh9QhcjCAIZMTERAVhdpmIBEejSuLI9ZmGKWzB7tweBjlk30+s/ofi4SLmBeTYhw==", - "dev": true, - "dependencies": { - "fdir": "^6.2.0", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.3.0.tgz", - "integrity": "sha512-QOnuT+BOtivR77wYvCWHfGt9s4Pz1VIMbD463vegT5MLqNXy8rYFT/lPVEqf/bhYeT6qmqrNHhsX+rWwe3rOCQ==", - "dev": true, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/tinypool": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.1.tgz", @@ -36233,48 +36200,6 @@ "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" } }, - "node_modules/vite-plugin-pwa": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/vite-plugin-pwa/-/vite-plugin-pwa-0.20.1.tgz", - "integrity": "sha512-M6Pk4b18i5ryrhKgiIF8Zud0HGphYiCbEfLsCdlvmwn/CEnS6noVwfIDG/+3V7r6yxpPV/gLiKw+rIlCCiCCoQ==", - "dev": true, - "dependencies": { - "debug": "^4.3.4", - "pretty-bytes": "^6.1.1", - "tinyglobby": "^0.2.0", - "workbox-build": "^7.1.0", - "workbox-window": "^7.1.0" - }, - "engines": { - "node": ">=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - }, - "peerDependencies": { - "@vite-pwa/assets-generator": "^0.2.4", - "vite": "^3.1.0 || ^4.0.0 || ^5.0.0", - "workbox-build": "^7.1.0", - "workbox-window": "^7.1.0" - }, - "peerDependenciesMeta": { - "@vite-pwa/assets-generator": { - "optional": true - } - } - }, - "node_modules/vite-plugin-pwa/node_modules/pretty-bytes": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-6.1.1.tgz", - "integrity": "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==", - "dev": true, - "engines": { - "node": "^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/vitest": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.0.5.tgz", @@ -39121,9 +39046,9 @@ } }, "@bdelab/roar-letter": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@bdelab/roar-letter/-/roar-letter-1.11.5.tgz", - "integrity": "sha512-8wUZSajJbDfLIOBcv/e+CbhVQvPnvidhVcRf/gA7RhVr0S959ldql1jO5tBKUyzU0jldha2X7zeqbvcb/KtpNA==", + "version": "1.11.8", + "resolved": "https://registry.npmjs.org/@bdelab/roar-letter/-/roar-letter-1.11.8.tgz", + "integrity": "sha512-y0VJ6mIYf0KkDZ1tvt9aGWFSokF9dhuJv74vf9yiewIFQxJHft/LIWfjscvW/Hpe9YUwJuHjJ0Liq129jbA1Qg==", "requires": { "@bdelab/jscat": "^4.0.0", "@bdelab/roar-firekit": "^4.7.0", @@ -56521,7 +56446,8 @@ }, "lodash._baseindexof": { "version": "3.1.0", - "bundled": true + "bundled": true, + "extraneous": true }, "lodash._baseuniq": { "version": "4.6.0", @@ -56543,22 +56469,26 @@ }, "lodash._bindcallback": { "version": "3.0.1", - "bundled": true + "bundled": true, + "extraneous": true }, "lodash._cacheindexof": { "version": "3.0.2", - "bundled": true + "bundled": true, + "extraneous": true }, "lodash._createcache": { "version": "3.1.2", "bundled": true, + "extraneous": true, "requires": { "lodash._getnative": "^3.0.0" } }, "lodash._getnative": { "version": "3.9.1", - "bundled": true + "bundled": true, + "extraneous": true }, "lodash.clonedeep": { "version": "4.5.0", @@ -56566,7 +56496,8 @@ }, "lodash.restparam": { "version": "3.6.1", - "bundled": true + "bundled": true, + "extraneous": true }, "lodash.union": { "version": "4.6.0", @@ -64278,31 +64209,6 @@ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", "dev": true }, - "tinyglobby": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.5.tgz", - "integrity": "sha512-Dlqgt6h0QkoHttG53/WGADNh9QhcjCAIZMTERAVhdpmIBEejSuLI9ZmGKWzB7tweBjlk30+s/ofi4SLmBeTYhw==", - "dev": true, - "requires": { - "fdir": "^6.2.0", - "picomatch": "^4.0.2" - }, - "dependencies": { - "fdir": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.3.0.tgz", - "integrity": "sha512-QOnuT+BOtivR77wYvCWHfGt9s4Pz1VIMbD463vegT5MLqNXy8rYFT/lPVEqf/bhYeT6qmqrNHhsX+rWwe3rOCQ==", - "dev": true, - "requires": {} - }, - "picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true - } - } - }, "tinypool": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.1.tgz", @@ -65715,27 +65621,6 @@ "node-stdlib-browser": "^1.2.0" } }, - "vite-plugin-pwa": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/vite-plugin-pwa/-/vite-plugin-pwa-0.20.1.tgz", - "integrity": "sha512-M6Pk4b18i5ryrhKgiIF8Zud0HGphYiCbEfLsCdlvmwn/CEnS6noVwfIDG/+3V7r6yxpPV/gLiKw+rIlCCiCCoQ==", - "dev": true, - "requires": { - "debug": "^4.3.4", - "pretty-bytes": "^6.1.1", - "tinyglobby": "^0.2.0", - "workbox-build": "^7.1.0", - "workbox-window": "^7.1.0" - }, - "dependencies": { - "pretty-bytes": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-6.1.1.tgz", - "integrity": "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==", - "dev": true - } - } - }, "vitest": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.0.5.tgz", diff --git a/package.json b/package.json index 8c3021c34..b373a3920 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "dependencies": { "@bdelab/roam-fluency": "1.11.26", "@bdelab/roar-firekit": "^8.0.8", - "@bdelab/roar-letter": "1.11.5", + "@bdelab/roar-letter": "1.11.8", "@bdelab/roar-multichoice": "^1.11.3", "@bdelab/roar-pa": "2.2.4", "@bdelab/roar-sre": "1.15.9", @@ -111,7 +111,6 @@ "vite-plugin-favicons-inject": "^2.2.0", "vite-plugin-mkcert": "^1.17.5", "vite-plugin-node-polyfills": "^0.22.0", - "vite-plugin-pwa": "^0.20.0", "vitest": "^2.0.5", "workbox-build": "^7.1.1", "workbox-core": "^7.1.0", diff --git a/roar-firebase-functions b/roar-firebase-functions index 3186f408d..27875477c 160000 --- a/roar-firebase-functions +++ b/roar-firebase-functions @@ -1 +1 @@ -Subproject commit 3186f408dbba54d2558b9f4df2b4adbc5cf987fb +Subproject commit 27875477c98d9b65712b2413b3780ed15bf97e6c diff --git a/src/components/views/OfflineSettings.vue b/src/components/views/OfflineSettings.vue deleted file mode 100644 index 0e4a6e1fa..000000000 --- a/src/components/views/OfflineSettings.vue +++ /dev/null @@ -1,345 +0,0 @@ - - - Offline Mode - Offline Mode caches data on your device and stores run data locally. - - - - - Loading User Data - - - - - - Offline Mode Enabled - - - Offline mode is currently under development. Features are limited and being rolled out in an experimental - basis. - - Please note that you may experience more bugs by toggling this feature. - - - - - - - - - - - Offline Tasks - - Add tasks to this list to maintain access to them while you are offline. - - - - - - Add - - - - - - No tasks added. - - - - {{ name }} - - removeOfflineTask(name)" - > - - - - - - - - - - - Offline Administrations - - Add administrations to this list to maintain access to them while you are offline. - - - - - Loading Administrations - - - - - Add - - - - - - No administrations added. - - - - {{ name }} - - removeOfflineAdministration(name)" - > - - - - - - - - - - - - Unsaved Changes - You have unsaved changes. - - - - - - - - - Save Settings - - - - - - - - diff --git a/src/router/index.js b/src/router/index.js index 9862ef04f..f6b262fd4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -94,6 +94,13 @@ const routes = [ props: { taskId: 'letter-es', language: 'es' }, meta: { pageTitle: 'Letter-ES' }, }, + { + path: '/game/letter-en-ca', + name: 'Letter-EN-CA', + component: () => import('../components/tasks/TaskLetter.vue'), + props: { taskId: 'letter-en-ca', language: 'en-CA' }, + meta: { pageTitle: 'Letter-EN-CA' }, + }, { path: '/game/multichoice', name: 'Multichoice', @@ -374,12 +381,6 @@ const routes = [ component: () => import('../components/views/LinkAccountsView.vue'), meta: { requireAdmin: true }, }, - { - path: 'offline', - name: 'OfflineSettings', - component: () => import('../components/views/OfflineSettings.vue'), - meta: { requireAdmin: true }, - }, ], meta: { pageTitle: 'Profile' }, }, diff --git a/src/sw.js b/src/sw.js deleted file mode 100644 index ee4d992e0..000000000 --- a/src/sw.js +++ /dev/null @@ -1,5 +0,0 @@ -import { cleanupOutdatedCaches, precacheAndRoute } from 'workbox-precaching'; - -precacheAndRoute(self.__WB_MANIFEST); - -cleanupOutdatedCaches(); diff --git a/vite.config.js b/vite.config.js index 74a4ed7c9..85f8283da 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,6 @@ import { sentryVitePlugin } from '@sentry/vite-plugin'; import { fileURLToPath, URL } from 'url'; import { defineConfig } from 'vite'; import Vue from '@vitejs/plugin-vue'; -import { VitePWA } from 'vite-plugin-pwa'; import mkcert from 'vite-plugin-mkcert'; import { nodePolyfills } from 'vite-plugin-node-polyfills'; import UnheadVite from '@unhead/addons/vite'; @@ -13,55 +12,6 @@ export default defineConfig({ Vue({ include: [/\.vue$/, /\.md$/], }), - VitePWA({ - strategies: 'injectManifest', - srcDir: 'src', - filename: 'sw.js', - injectManifest: { - injectionPoint: undefined, - rollupFormat: 'iife', - globPatterns: ['**/*'], - }, - manifest: { - name: 'ROAR Dashboard', - short_name: 'ROAD', - start_url: '.', - display: 'standalone', - theme_color: '#ffffff', - background_color: '#ffffff', - injectRegister: 'manual', - icons: [ - { - src: '/pwa-64x64.png', - sizes: '64x64', - type: 'image/png', - }, - { - src: '/pwa-192x192.png', - sizes: '192x192', - type: 'image/png', - }, - { - src: '/pwa-512x512.png', - sizes: '512x512', - type: 'image/png', - purpose: 'any', - }, - { - src: '/maskable-icon-512x512.png', - sizes: '512x512', - type: 'image/png', - purpose: 'maskable', - }, - ], - }, - devOptions: { - enabled: true, - type: 'module', - navigateFallback: 'index.html', - suppressWarnings: true, - }, - }), nodePolyfills({ globals: { process: true,