-
-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #983 from mermaid-js/sidv/upgradeSvelteKit
Upgrade SvelteKit
- Loading branch information
Showing
13 changed files
with
124 additions
and
43 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
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import type { RequestHandler } from './$types'; | ||
import { GET as manifestGet } from '../../manifest.json/+server'; | ||
|
||
export const GET: RequestHandler = manifestGet; |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { json } from '@sveltejs/kit'; | ||
import { base } from '$app/paths'; | ||
import type { RequestHandler } from './$types'; | ||
|
||
export const GET: RequestHandler = () => { | ||
return json({ | ||
short_name: 'Mermaid', | ||
name: 'Mermaid Live Editor', | ||
icons: [ | ||
{ | ||
src: `${base}/icon-192.png`, | ||
type: 'image/png', | ||
sizes: '192x192' | ||
}, | ||
{ | ||
src: `${base}/icon-512.png`, | ||
type: 'image/png', | ||
sizes: '512x512' | ||
} | ||
], | ||
start_url: `${base}/edit/`, | ||
background_color: '#6366F1', | ||
display: 'standalone', | ||
scope: `${base}/edit/`, | ||
theme_color: '#6366F1', | ||
description: 'FlowChart & Diagrams Editor.', | ||
orientation: 'landscape' | ||
}); | ||
}; |
File renamed without changes.
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,4 +1,11 @@ | ||
import matchers from '@testing-library/jest-dom/matchers'; | ||
import { expect } from 'vitest'; | ||
import { expect, beforeAll, vi } from 'vitest'; | ||
|
||
expect.extend(matchers); | ||
|
||
// TODO: Remove once https://github.com/sveltejs/kit/issues/6259 is closed. | ||
beforeAll(() => { | ||
vi.mock('$app/env', () => ({ | ||
browser: 'window' in globalThis | ||
})); | ||
}); |
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