-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
942 additions
and
467 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"type": "rolling", | ||
"targetPlatform": "REPLACE_IN_PIPELINE", | ||
"applicationData": { | ||
"artifactUrl": "REPLACE_IN_PIPELINE", | ||
"version": "REPLACE_IN_PIPELINE" | ||
}, | ||
"runtime": { | ||
"type": "REPLACE_IN_PIPELINE", | ||
"nodejsVersion": "REPLACE_IN_PIPELINE" | ||
}, | ||
"profiles": [ | ||
{ "name": "loadBalancer", "healthCheckPath": "REPLACE_IN_PIPELINE" }, | ||
{ "name": "healthcheck", "interval": "REPLACE_IN_PIPELINE" }, | ||
{ | ||
"name": "environmentVariables", | ||
"variables": { | ||
"APP_ID": "REPLACE_IN_PIPELINE", | ||
"APP_VERSION": "REPLACE_IN_PIPELINE", | ||
"NODE_ENV": "REPLACE_IN_PIPELINE" | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 📝 Development Variables 📝 | ||
# These variables are only loaded in the development mode. | ||
# | ||
# The final value of a variable depends on the priority of where it's being set: | ||
# 1. Deployment pipeline. | ||
# 2. Dedicated mode (.env.development). | ||
# 3. Shared mode (.env). | ||
# | ||
# 🚫 DO NOT PUT SECRETS HERE 🚫 | ||
|
||
# GitHub | ||
VITE_GH_CLIENT_ID="Ov23liFxLb96ubvBRG2O" |
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,12 @@ | ||
# 📝 Production Variables 📝 | ||
# These variables are only loaded in the production mode. | ||
# | ||
# The final value of a variable depends on the priority of where it's being set: | ||
# 1. Deployment pipeline. | ||
# 2. Dedicated mode (.env.production). | ||
# 3. Shared mode (.env). | ||
# | ||
# 🚫 DO NOT PUT SECRETS HERE 🚫 | ||
|
||
# GitHub | ||
VITE_GH_CLIENT_ID="Ov23liP5TXOmoYIDBmLB" |
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,12 @@ | ||
# 📝 Staging Variables 📝 | ||
# These variables are only loaded in the staging mode. | ||
# | ||
# The final value of a variable depends on the priority of where it's being set: | ||
# 1. Deployment pipeline. | ||
# 2. Dedicated mode (.env.staging). | ||
# 3. Shared mode (.env). | ||
# | ||
# 🚫 DO NOT PUT SECRETS HERE 🚫 | ||
|
||
# GitHub | ||
VITE_GH_CLIENT_ID="Ov23liHsmlS8msOMUqLd" |
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,9 @@ | ||
eslint.config.js export-ignore | ||
**/.* export-ignore | ||
**/*.json export-ignore | ||
**/*.yaml export-ignore | ||
**/*.yml export-ignore | ||
**/*.toml export-ignore | ||
**/*.code-* export-ignore | ||
**/*.md export-ignore | ||
scripts export-ignore |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* © Ocado Group | ||
* Created on 13/12/2024 at 17:47:39(+00:00). | ||
* | ||
* The entrypoint to our app. | ||
*/ | ||
|
||
import Server from "codeforlife/src/server.js" | ||
|
||
new Server().run() |
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,15 +1,21 @@ | ||
import { App as _App, type AppProps as _AppProps } from "codeforlife/components" | ||
import { type FC } from "react" | ||
import { App as _ } from "codeforlife/components" | ||
|
||
import Footer from "./features/footer/Footer.tsx" | ||
import routes from "./routes" | ||
import store from "./app/store" | ||
import theme from "./app/theme" | ||
|
||
export interface AppProps {} | ||
export interface AppProps extends Pick<_AppProps, "path"> {} | ||
|
||
const App: FC<AppProps> = () => ( | ||
<_ store={store} theme={theme} routes={routes} footer={<Footer />} /> | ||
const App: FC<AppProps> = props => ( | ||
<_App | ||
store={store} | ||
theme={theme} | ||
routes={routes} | ||
footer={<Footer />} | ||
{...props} | ||
/> | ||
) | ||
|
||
export default App |
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,11 @@ | ||
import { StrictMode } from "react" | ||
import { hydrateRoot } from "react-dom/client" | ||
|
||
import App from "./App" | ||
|
||
hydrateRoot( | ||
document.getElementById("root") as HTMLElement, | ||
<StrictMode> | ||
<App /> | ||
</StrictMode>, | ||
) |
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,14 @@ | ||
import { StrictMode } from "react" | ||
import { renderToString } from "react-dom/server" | ||
|
||
import App from "./App" | ||
|
||
export function render(path: string) { | ||
return { | ||
html: renderToString( | ||
<StrictMode> | ||
<App path={path} /> | ||
</StrictMode>, | ||
), | ||
} | ||
} |
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
Oops, something went wrong.