-
-
Notifications
You must be signed in to change notification settings - Fork 32
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 #17 from Cross-Lab-Project/crosslab
Crosslab
- Loading branch information
Showing
60 changed files
with
2,271 additions
and
28,844 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,4 @@ | ||
.github | ||
.gitignore | ||
Dockerfile* | ||
docker-compose.yml |
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,4 @@ | ||
.edrys | ||
.edrys | ||
client/.nuxt | ||
client/node_modules | ||
docker-compose.yaml |
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,5 +1,17 @@ | ||
FROM node:16 AS c-build | ||
WORKDIR /app | ||
COPY client . | ||
RUN npm install | ||
RUN npm run generate | ||
|
||
FROM denoland/deno:latest AS s-build | ||
WORKDIR / | ||
COPY server server | ||
RUN deno bundle server/app.ts /app.js | ||
|
||
FROM denoland/deno:latest | ||
WORKDIR / | ||
COPY . ./ | ||
COPY --from=c-build /app/dist /dist/static | ||
COPY --from=s-build /app.js /dist/ | ||
EXPOSE 8000/tcp | ||
CMD ["run", "-A", "dist/app.js", "--address", "0.0.0.0:8000", "--serve-path", "dist/static"] | ||
CMD ["run", "-A", "dist/app.js", "--address", "0.0.0.0:8000", "--serve-path", "dist/static"] |
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 @@ | ||
all: client deno | ||
|
||
client: | ||
cd client && npm run generate && rm -rf ../dist/static && cp -r dist ../dist/static | ||
|
||
deno: | ||
deno bundle server/app.ts dist/app.js | ||
|
||
run: | ||
deno run -A dist/app.js --address localhost:8000 --serve-path dist/static --secret 182761552627328716 |
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 @@ | ||
dist/ |
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 @@ | ||
dist/ |
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 @@ | ||
dist/ |
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,25 +1,26 @@ | ||
@import './materialdesignicons.min.css'; | ||
|
||
@font-face { | ||
font-family: MainFont; | ||
src: url('../fonts/IBMPlexSans-Medium.ttf'); | ||
font-family: MainFont; | ||
src: url('../fonts/IBMPlexSans-Medium.ttf'); | ||
} | ||
|
||
html, body { | ||
font-family: MainFont !important; | ||
html, | ||
body { | ||
font-family: MainFont !important; | ||
} | ||
|
||
|
||
.handle { | ||
cursor: move; /* fallback if grab cursor is unsupported */ | ||
cursor: grab; | ||
cursor: -moz-grab; | ||
cursor: -webkit-grab; | ||
} | ||
|
||
/* (Optional) Apply a "closed-hand" cursor during drag operation. */ | ||
.handle:active { | ||
cursor: grabbing; | ||
cursor: -moz-grabbing; | ||
cursor: -webkit-grabbing; | ||
} | ||
cursor: move; | ||
/* fallback if grab cursor is unsupported */ | ||
cursor: grab; | ||
cursor: -moz-grab; | ||
cursor: -webkit-grab; | ||
} | ||
|
||
/* (Optional) Apply a "closed-hand" cursor during drag operation. */ | ||
.handle:active { | ||
cursor: grabbing; | ||
cursor: -moz-grabbing; | ||
cursor: -webkit-grabbing; | ||
} |
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
Oops, something went wrong.
06f08f2
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.
Failed to deploy: