-
Notifications
You must be signed in to change notification settings - Fork 0
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
25 changed files
with
138 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: bin/rails server |
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,20 @@ | ||
import { vars, theme } from '@/lib/theme' | ||
import { rem } from '@mantine/core' | ||
import { css } from '@linaria/core' | ||
|
||
export const section = css` | ||
${vars.lightSelector} { | ||
background-color: ${vars.colors.white}; | ||
} | ||
${vars.darkSelector} { | ||
background-color: ${vars.colors.gray[9]}; | ||
} | ||
box-shadow: ${vars.shadows.xs}; | ||
padding: 1rem 0.75rem; | ||
border-top: 2px solid ${vars.colors.primaryColors.filled}; | ||
& + & { | ||
margin-top: ${rem(10)}; | ||
} | ||
` |
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
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,16 @@ | ||
import React from 'react' | ||
|
||
interface ErrorProps { | ||
status: any | ||
} | ||
|
||
const Error = ({ status }: ErrorProps) => { | ||
return ( | ||
<> | ||
<div>Error</div> | ||
<div>{ status }</div> | ||
</> | ||
) | ||
} | ||
|
||
export default Error |
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
Empty file.
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,8 +1,17 @@ | ||
#!/bin/bash -e | ||
|
||
# If running the rails server then create or migrate existing database | ||
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then | ||
./bin/rails db:prepare | ||
# Check if master.key exists | ||
if [ ! -f /osc/config/secrets/master.key ]; then | ||
echo "Generating master.key..." | ||
# Run the rails credentials:edit command in non-interactive mode | ||
EDITOR="echo" rails credentials:edit | ||
fi | ||
|
||
rm -f tmp/pids/server.pid | ||
|
||
/osc/bin/rails db:prepare | ||
/osc/bin/rails db:seed | ||
|
||
RACK_ENV="production" RAILS_ENV="production" NODE_ENV="production" /osc/bin/rails server | ||
|
||
exec "${@}" |
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 +1 @@ | ||
xHhAOBZLKEaTJ/9qV9XhMqoBGlI7ImpGAEQhUTc1VJ9kgcp8K3H50oFMew3XPO4WNp30MMAy3xRQ4d2/xLG8PDUZ9dINxOae+lCro/vbJPNe3eYkVHAB/2O0iSeFSrr+Cg2D/NsM0cWy4X0H/E7+b0xNah/NvBokM51/OUOGa2q6c7621WzOHz7ODElpVeNkF3UrUHnbFfKCstATj4sjkV9HYx3iDoMmANITpvG/Z+To75zBacVqGJ59+G3bsdsnW61FuTdIsLMElgzgZY1FKzJMnDG8VA6QeBG2YzPnzgV+07RzwTFZ3PbsFi7m134SOZzoX6DlQX+zVtUM8d6qO465uLM3VPllTLgb8sy4/vdElolna2rgMsiXsd/P47UJMAwbdfPgVG9sWJ+uiUhHEXdswPd3LchffncH--7YUaJqXSCfgaa9GR--iy2s+hie4ej5vbzXddVObw== | ||
TXuAMWs7AfNfRonXDEUv++Ed24cTyGBwQEb85xbEjPVl+yqCv9OZ9j0F46vxnd1vXo5kG3Pr8PNo5xUx9hkLZh6JNCFRkpSgOzt5zDPrzW5Hg7C987F+BWU2dhJ9KCwP7+qWTE3BO/Z/BT7ekGFzyuu48oVDlOR1Z0fA4uFBwWl30Ihh97Zcp9nn78cJYvGCqGruJF8Lzc+N+PWXEG8Fl53MzfYOuLKOyqOx7H0LbIKJ2QRNRt66N5qEcE2WXMrhEMEiZjYFoaOdceGPYYqByeEBodiQr91y9FlkVDqhqKPlZb4pvrcZhbxSRkLIxgSROUZjaw7V0n09CyUgfHRyHAEnxJpQ0ZvMTrKI3YDFYFS/0Y1J/1KohdlzmeGTHLsGshvXl6RzTnie9nGoF8pwaGB2FjPq--1kPIShbOUb8jaR+W--1ral2EJGXvcmtzxx4sqm7A== |
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,3 @@ | ||
if Screen.count === 0 | ||
Screen.create title: "Main" | ||
end |
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,35 @@ | ||
#!/bin/bash | ||
|
||
source_paths=( | ||
./yarn | ||
./app | ||
./bin | ||
./config | ||
./db | ||
./lib | ||
./public | ||
./ruby-version | ||
./.yarnrc.yml | ||
./config.ru | ||
./Gemfile | ||
./Gemfile.lock | ||
./package.json | ||
./postcss.config.mjs | ||
./Rakefile | ||
./static.json | ||
./tsconfig.json | ||
./vite.config.ts | ||
./yarn.lock | ||
) | ||
|
||
destination_dir=/osc/ | ||
|
||
cp "${source_paths[@]}" "$destination_dir" | ||
|
||
mkdir ./log | ||
mkdir ./tmp | ||
|
||
rm -f /osc/config/secrets/master.key | ||
rm -f /osc/config/secrets/credentials.yml.enc | ||
|
||
exit 0 |
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.