diff --git a/apps/core/public/static/029uztLz2CzJezK7UUhrbGiWUdZ0J7NVs_qR6RDsvb8=.png b/apps/core/public/static/029uztLz2CzJezK7UUhrbGiWUdZ0J7NVs_qR6RDsvb8=.png new file mode 100644 index 0000000000..50f5f4a79c Binary files /dev/null and b/apps/core/public/static/029uztLz2CzJezK7UUhrbGiWUdZ0J7NVs_qR6RDsvb8=.png differ diff --git a/apps/core/public/static/0hjYqQd8SvwHT2gPds7qFw8W6qIEGVbZvG45uzoYjUU=.png b/apps/core/public/static/0hjYqQd8SvwHT2gPds7qFw8W6qIEGVbZvG45uzoYjUU=.png new file mode 100644 index 0000000000..5ed2a396e0 Binary files /dev/null and b/apps/core/public/static/0hjYqQd8SvwHT2gPds7qFw8W6qIEGVbZvG45uzoYjUU=.png differ diff --git a/apps/core/public/static/4HXJrnBZGaGPFpowNawNog0aMg3dgoVaAnNqEMeUxq0=.png b/apps/core/public/static/4HXJrnBZGaGPFpowNawNog0aMg3dgoVaAnNqEMeUxq0=.png new file mode 100644 index 0000000000..27a179798f Binary files /dev/null and b/apps/core/public/static/4HXJrnBZGaGPFpowNawNog0aMg3dgoVaAnNqEMeUxq0=.png differ diff --git a/apps/core/public/static/5Cfem_137WmzR35ZeIC76oTkq5SQt-eHlZwJiLy0hgU=.png b/apps/core/public/static/5Cfem_137WmzR35ZeIC76oTkq5SQt-eHlZwJiLy0hgU=.png new file mode 100644 index 0000000000..0f9fffb635 Binary files /dev/null and b/apps/core/public/static/5Cfem_137WmzR35ZeIC76oTkq5SQt-eHlZwJiLy0hgU=.png differ diff --git a/apps/core/public/static/Bd5F0WRI0fLh8RK1al9PawPVT3jv7VwBrqiiBEtdV-g=.png b/apps/core/public/static/Bd5F0WRI0fLh8RK1al9PawPVT3jv7VwBrqiiBEtdV-g=.png new file mode 100644 index 0000000000..d62ea0d0f0 Binary files /dev/null and b/apps/core/public/static/Bd5F0WRI0fLh8RK1al9PawPVT3jv7VwBrqiiBEtdV-g=.png differ diff --git a/apps/core/public/static/CBWoKrhSDndjBJzscQKENRqiXOOZnzIA5qyiCoy4-A0=.png b/apps/core/public/static/CBWoKrhSDndjBJzscQKENRqiXOOZnzIA5qyiCoy4-A0=.png new file mode 100644 index 0000000000..aeaf8c48ac Binary files /dev/null and b/apps/core/public/static/CBWoKrhSDndjBJzscQKENRqiXOOZnzIA5qyiCoy4-A0=.png differ diff --git a/apps/core/public/static/D7g-4LMqOsVWBNOD-_kGgCOvJEoc8rcpYbkfDlF2u5U=.png b/apps/core/public/static/D7g-4LMqOsVWBNOD-_kGgCOvJEoc8rcpYbkfDlF2u5U=.png new file mode 100644 index 0000000000..c913cab1b1 Binary files /dev/null and b/apps/core/public/static/D7g-4LMqOsVWBNOD-_kGgCOvJEoc8rcpYbkfDlF2u5U=.png differ diff --git a/apps/core/public/static/fb0SNPtMpQlzBQ90_PB7vCu34WpiSUJbNKocFkL2vIo=.png b/apps/core/public/static/fb0SNPtMpQlzBQ90_PB7vCu34WpiSUJbNKocFkL2vIo=.png new file mode 100644 index 0000000000..b57d8358ab Binary files /dev/null and b/apps/core/public/static/fb0SNPtMpQlzBQ90_PB7vCu34WpiSUJbNKocFkL2vIo=.png differ diff --git a/apps/core/public/static/i39ZQ24NlUfWI0MhkbtvHTzGnWMVdr-aC2aOjvHPVg4=.png b/apps/core/public/static/i39ZQ24NlUfWI0MhkbtvHTzGnWMVdr-aC2aOjvHPVg4=.png new file mode 100644 index 0000000000..231b54e25d Binary files /dev/null and b/apps/core/public/static/i39ZQ24NlUfWI0MhkbtvHTzGnWMVdr-aC2aOjvHPVg4=.png differ diff --git a/apps/core/public/static/k07JiWnb-S7qgd9gDQNgqo-LYMe03RX8fR0TXQ-SpG4=.png b/apps/core/public/static/k07JiWnb-S7qgd9gDQNgqo-LYMe03RX8fR0TXQ-SpG4=.png new file mode 100644 index 0000000000..320252758c Binary files /dev/null and b/apps/core/public/static/k07JiWnb-S7qgd9gDQNgqo-LYMe03RX8fR0TXQ-SpG4=.png differ diff --git a/apps/core/public/static/nSEEkYxrThpZfLoPNOzMp6HWekvutAIYmADElDe1J6I=.png b/apps/core/public/static/nSEEkYxrThpZfLoPNOzMp6HWekvutAIYmADElDe1J6I=.png new file mode 100644 index 0000000000..a9e99ebddb Binary files /dev/null and b/apps/core/public/static/nSEEkYxrThpZfLoPNOzMp6HWekvutAIYmADElDe1J6I=.png differ diff --git a/apps/core/public/static/qezoK6du9n3PF4dl4aq5r7LeXz_sV3xOVpFzVVgjNsE=.png b/apps/core/public/static/qezoK6du9n3PF4dl4aq5r7LeXz_sV3xOVpFzVVgjNsE=.png new file mode 100644 index 0000000000..aa059d52b6 Binary files /dev/null and b/apps/core/public/static/qezoK6du9n3PF4dl4aq5r7LeXz_sV3xOVpFzVVgjNsE=.png differ diff --git a/apps/core/public/static/rY96Bunn-69CnNe5X_e5CJLwgCJnN6rcbUisecs8kkQ=.png b/apps/core/public/static/rY96Bunn-69CnNe5X_e5CJLwgCJnN6rcbUisecs8kkQ=.png new file mode 100644 index 0000000000..e5734eb915 Binary files /dev/null and b/apps/core/public/static/rY96Bunn-69CnNe5X_e5CJLwgCJnN6rcbUisecs8kkQ=.png differ diff --git a/apps/core/public/static/sNVNYDBzUDN2J9OFVJdLJlryBLzRZBLl-4MTNoPF1tA=.png b/apps/core/public/static/sNVNYDBzUDN2J9OFVJdLJlryBLzRZBLl-4MTNoPF1tA=.png new file mode 100644 index 0000000000..931a08dc2d Binary files /dev/null and b/apps/core/public/static/sNVNYDBzUDN2J9OFVJdLJlryBLzRZBLl-4MTNoPF1tA=.png differ diff --git a/apps/core/public/static/uvpOG9DrldeqIGNaqfwjFdMw_CcfXKfiEjYf7RXdeL0=.png b/apps/core/public/static/uvpOG9DrldeqIGNaqfwjFdMw_CcfXKfiEjYf7RXdeL0=.png new file mode 100644 index 0000000000..3bbc22cefb Binary files /dev/null and b/apps/core/public/static/uvpOG9DrldeqIGNaqfwjFdMw_CcfXKfiEjYf7RXdeL0=.png differ diff --git a/apps/core/public/static/v2yF7lY2L5rtorTtTmYFsoMb9dBPKs5M1y9cUKxcI1M=.png b/apps/core/public/static/v2yF7lY2L5rtorTtTmYFsoMb9dBPKs5M1y9cUKxcI1M=.png new file mode 100644 index 0000000000..02627f54c2 Binary files /dev/null and b/apps/core/public/static/v2yF7lY2L5rtorTtTmYFsoMb9dBPKs5M1y9cUKxcI1M=.png differ diff --git a/packages/workspace/src/blob/local-static-storage.ts b/packages/workspace/src/blob/local-static-storage.ts index 3fbebb8da6..186d62dd48 100644 --- a/packages/workspace/src/blob/local-static-storage.ts +++ b/packages/workspace/src/blob/local-static-storage.ts @@ -1,5 +1,24 @@ import type { BlobStorage } from '@blocksuite/store'; +const predefinedStaticFiles = [ + 'v2yF7lY2L5rtorTtTmYFsoMb9dBPKs5M1y9cUKxcI1M=', + 'nSEEkYxrThpZfLoPNOzMp6HWekvutAIYmADElDe1J6I=', + 'CBWoKrhSDndjBJzscQKENRqiXOOZnzIA5qyiCoy4-A0=', + 'uvpOG9DrldeqIGNaqfwjFdMw_CcfXKfiEjYf7RXdeL0=', + 'D7g-4LMqOsVWBNOD-_kGgCOvJEoc8rcpYbkfDlF2u5U=', + '4HXJrnBZGaGPFpowNawNog0aMg3dgoVaAnNqEMeUxq0=', + 'rY96Bunn-69CnNe5X_e5CJLwgCJnN6rcbUisecs8kkQ=', + 'fb0SNPtMpQlzBQ90_PB7vCu34WpiSUJbNKocFkL2vIo=', + 'k07JiWnb-S7qgd9gDQNgqo-LYMe03RX8fR0TXQ-SpG4=', + 'i39ZQ24NlUfWI0MhkbtvHTzGnWMVdr-aC2aOjvHPVg4=', + '0hjYqQd8SvwHT2gPds7qFw8W6qIEGVbZvG45uzoYjUU=', + 'qezoK6du9n3PF4dl4aq5r7LeXz_sV3xOVpFzVVgjNsE=', + 'sNVNYDBzUDN2J9OFVJdLJlryBLzRZBLl-4MTNoPF1tA=', + 'Bd5F0WRI0fLh8RK1al9PawPVT3jv7VwBrqiiBEtdV-g=', + '029uztLz2CzJezK7UUhrbGiWUdZ0J7NVs_qR6RDsvb8=', + '5Cfem_137WmzR35ZeIC76oTkq5SQt-eHlZwJiLy0hgU=', +]; + export const createStaticStorage = (): BlobStorage => { return { crud: { @@ -7,6 +26,9 @@ export const createStaticStorage = (): BlobStorage => { if (key.startsWith('/static/')) { const response = await fetch(key); return response.blob(); + } else if (predefinedStaticFiles.includes(key)) { + const response = await fetch(`/static/${key}.png`); + return response.blob(); } return null; },