-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed traverseSelection & History Updates
- Loading branch information
1 parent
e370e1b
commit 517a143
Showing
11 changed files
with
123 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { CustomInjectManifestOptions } from 'vite-plugin-pwa'; | ||
|
||
export const injectConfig: Partial<CustomInjectManifestOptions> = { | ||
minify: false, | ||
enableWorkboxModulesLogs: true, | ||
}; | ||
// import { CustomInjectManifestOptions } from 'vite-plugin-pwa'; | ||
// | ||
// export const injectConfig: Partial<CustomInjectManifestOptions> = { | ||
// minify: false, | ||
// enableWorkboxModulesLogs: true, | ||
// }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
import { ManifestOptions } from 'vite-plugin-pwa'; | ||
|
||
export const manifestConfig: Partial<ManifestOptions> = { | ||
name: 'NoteSpace', | ||
short_name: 'NoteSpace', | ||
start_url: '/', | ||
scope: '.', | ||
display: 'standalone', | ||
background_color: '#ffffff', | ||
theme_color: '#ffffff', | ||
orientation: 'portrait-primary', | ||
icons: [ | ||
{ | ||
src: '/android-chrome-192x192.png', | ||
sizes: '192x192', | ||
type: 'image/png', | ||
purpose: 'any maskable', | ||
}, | ||
{ | ||
src: '/android-chrome-512x512.png', | ||
sizes: '512x512', | ||
type: 'image/png', | ||
purpose: 'any maskable', | ||
}, | ||
/* favicon */ | ||
{ | ||
src: '/favicon-16x16.png', | ||
sizes: '16x16', | ||
type: 'image/png', | ||
purpose: 'any maskable', | ||
}, | ||
{ | ||
src: '/favicon-32x32.png', | ||
sizes: '32x32', | ||
type: 'image/png', | ||
purpose: 'any maskable', | ||
}, | ||
{ | ||
src: '/apple-touch-icon.png', | ||
sizes: '180x180', | ||
type: 'image/png', | ||
purpose: 'any maskable', | ||
}, | ||
], | ||
}; | ||
// import { ManifestOptions } from 'vite-plugin-pwa'; | ||
// | ||
// export const manifestConfig: Partial<ManifestOptions> = { | ||
// name: 'NoteSpace', | ||
// short_name: 'NoteSpace', | ||
// start_url: '/', | ||
// scope: '.', | ||
// display: 'standalone', | ||
// background_color: '#ffffff', | ||
// theme_color: '#ffffff', | ||
// orientation: 'portrait-primary', | ||
// icons: [ | ||
// { | ||
// src: '/android-chrome-192x192.png', | ||
// sizes: '192x192', | ||
// type: 'image/png', | ||
// purpose: 'any maskable', | ||
// }, | ||
// { | ||
// src: '/android-chrome-512x512.png', | ||
// sizes: '512x512', | ||
// type: 'image/png', | ||
// purpose: 'any maskable', | ||
// }, | ||
// /* favicon */ | ||
// { | ||
// src: '/favicon-16x16.png', | ||
// sizes: '16x16', | ||
// type: 'image/png', | ||
// purpose: 'any maskable', | ||
// }, | ||
// { | ||
// src: '/favicon-32x32.png', | ||
// sizes: '32x32', | ||
// type: 'image/png', | ||
// purpose: 'any maskable', | ||
// }, | ||
// { | ||
// src: '/apple-touch-icon.png', | ||
// sizes: '180x180', | ||
// type: 'image/png', | ||
// purpose: 'any maskable', | ||
// }, | ||
// ], | ||
// }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { injectConfig } from './inject-config.ts'; | ||
import { manifestConfig } from './manifest-config.ts'; | ||
import { VitePWAOptions } from 'vite-plugin-pwa'; | ||
|
||
export const pwaConfig: Partial<VitePWAOptions> = { | ||
mode: 'development', | ||
base: '/', | ||
strategies: 'injectManifest', | ||
srcDir: './src/pwa', | ||
filename: 'sw.ts', | ||
//injectRegister: false, | ||
injectManifest: injectConfig, | ||
registerType: 'autoUpdate', | ||
manifest: manifestConfig, | ||
devOptions: { | ||
enabled: true, | ||
navigateFallback: '../../index.html', | ||
type: 'module', | ||
}, | ||
}; | ||
// import { injectConfig } from './inject-config.ts'; | ||
// import { manifestConfig } from './manifest-config.ts'; | ||
// import { VitePWAOptions } from 'vite-plugin-pwa'; | ||
// | ||
// export const pwaConfig: Partial<VitePWAOptions> = { | ||
// mode: 'development', | ||
// base: '/', | ||
// strategies: 'injectManifest', | ||
// srcDir: './src/pwa', | ||
// filename: 'sw.ts', | ||
// //injectRegister: false, | ||
// injectManifest: injectConfig, | ||
// registerType: 'autoUpdate', | ||
// manifest: manifestConfig, | ||
// devOptions: { | ||
// enabled: true, | ||
// navigateFallback: '../../index.html', | ||
// type: 'module', | ||
// }, | ||
// }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { cleanupOutdatedCaches, precacheAndRoute } from 'workbox-precaching'; | ||
|
||
declare let self: ServiceWorkerGlobalScope; | ||
|
||
precacheAndRoute(self.__WB_MANIFEST); | ||
|
||
// this will clean up old caches that are not needed anymore | ||
cleanupOutdatedCaches(); | ||
// import { cleanupOutdatedCaches, precacheAndRoute } from 'workbox-precaching'; | ||
// | ||
// declare let self: ServiceWorkerGlobalScope; | ||
// | ||
// precacheAndRoute(self.__WB_MANIFEST); | ||
// | ||
// // this will clean up old caches that are not needed anymore | ||
// cleanupOutdatedCaches(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters