-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #1204 from qdraw/feature/202308_vite
CRA -> Vite - frontend migratie
- Loading branch information
Showing
318 changed files
with
12,200 additions
and
32,657 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
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ setupTests.js | |
*.ico | ||
*.gif | ||
*.woff | ||
*.woff2 | ||
*.woff2 |
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,31 +1,19 @@ | ||
import type { StorybookConfig } from "@storybook/react-webpack5"; | ||
import type { StorybookConfig } from "@storybook/react-vite"; | ||
|
||
const config: StorybookConfig = { | ||
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"], | ||
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"], | ||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/preset-create-react-app", | ||
"@storybook/addon-onboarding", | ||
"@storybook/addon-interactions" | ||
], | ||
framework: { | ||
name: "@storybook/react-webpack5", | ||
name: "@storybook/react-vite", | ||
options: {} | ||
}, | ||
core: { | ||
disableTelemetry: true, | ||
enableCrashReports: false | ||
}, | ||
docs: { | ||
autodocs: "tag" | ||
}, | ||
staticDirs: ["../public"], | ||
webpackFinal: async (config) => { | ||
// build-storybook url | ||
//config.output!.publicPath = "/"; | ||
return config; | ||
}, | ||
features: { | ||
storyStoreV7: true | ||
} | ||
}; | ||
export default config; |
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,8 @@ | ||
{ | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
"editor.formatOnSave": true, | ||
"eslint.alwaysShowStatus": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"version": "0.2", | ||
"language": "en,nl", | ||
"words": [ | ||
"mkdirp", | ||
"tsmerge", | ||
"githubusercontent", | ||
"streetsidesoftware", | ||
"vsmarketplacebadge", | ||
"visualstudio", | ||
"starsky", | ||
"droparea", | ||
"detailview", | ||
"nextprev", | ||
"translatex", | ||
"ECEFF", | ||
"colorclass", | ||
"kleurloos", | ||
"geen", | ||
"imageformat", | ||
"lastedited", | ||
"NOSONAR", | ||
"zoomfactor", | ||
"filehash", | ||
"issingleitem", | ||
"sidemenu", | ||
"localization", | ||
"hellip", | ||
"Exif", | ||
"exifstatus", | ||
"rootfilename", | ||
"eventclient", | ||
"jkettmann", | ||
"flatlistitem", | ||
"onderstaande", | ||
"maximaal", | ||
"tekens", | ||
"hebben", | ||
"maxlength", | ||
"afbeelding", | ||
"Nederlands", | ||
"Sluiten", | ||
"Meer", | ||
"Vorige", | ||
"Volgende", | ||
"relativelink", | ||
"Ftest", | ||
"Toevoegen", | ||
"Overschrijven", | ||
"Fnew" | ||
], | ||
"flagWords": ["hte"] | ||
} |
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,28 @@ | ||
{ | ||
"name": "clientapp2", | ||
"private": true, | ||
"version": "0.5.10", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.15", | ||
"@types/react-dom": "^18.2.7", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"@vitejs/plugin-react-swc": "^3.3.2", | ||
"eslint": "^8.45.0", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.3", | ||
"typescript": "^5.0.2", | ||
"vite": "^4.4.5" | ||
} | ||
} |
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,45 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="shortcut icon" href="/starsky/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta name="description" content="Starsky web app" /> | ||
<link rel="apple-touch-icon" href="/starsky/baseline-searcher-detective-263238__192px.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Starsky App</title> | ||
<link rel="manifest" href="/starsky/manifest.json" /> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
|
||
<script type="module" src="/src/main.tsx"></script> | ||
|
||
<div class="modal-bg modal-bg--open trouble-loading"> | ||
<div class="modal-content modal-content--show trouble-loading"> | ||
<div class="modal-close-bar"></div> | ||
<div class="modal content--subheader"> | ||
For some reason, Starsky couldn't load | ||
</div> | ||
<div class="modal content--text"> | ||
<p>We're quite sorry about this</p> | ||
<h4>Troubleshooting</h4> | ||
<p>Here are a few things to try:</p> | ||
<noscript> | ||
<ul> | ||
<li>You need to enable JavaScript to run this app.</li> | ||
</ul> | ||
</noscript> | ||
<ul> | ||
<li> | ||
<a href="/?force_cold_boot=1">Reload starsky</a> or even restart | ||
your browser | ||
</li> | ||
<li>Make sure your security software isn't blocking Starksy</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
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,26 @@ | ||
import "@testing-library/jest-dom"; | ||
import { configure } from "@testing-library/react"; | ||
import "isomorphic-fetch"; | ||
|
||
// Mock IntersectionObserver | ||
class IntersectionObserver { | ||
observe = jest.fn(); | ||
disconnect = jest.fn(); | ||
unobserve = jest.fn(); | ||
} | ||
|
||
Object.defineProperty(window, "IntersectionObserver", { | ||
writable: true, | ||
configurable: true, | ||
value: IntersectionObserver | ||
}); | ||
|
||
Object.defineProperty(global, "IntersectionObserver", { | ||
writable: true, | ||
configurable: true, | ||
value: IntersectionObserver | ||
}); | ||
|
||
window.scrollTo = jest.fn(); | ||
|
||
configure({ testIdAttribute: "data-test" }); |
Oops, something went wrong.
9ae18c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://starskyapp.netlify.app as production
🚀 Deployed on https://651d91fa62f6911b60980d1e--starskyapp.netlify.app