forked from Doenet/DoenetTools
-
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.
Merge remote-tracking branch 'emilio/vite-dev' into viteDeploy
- Loading branch information
Showing
193 changed files
with
2,981 additions
and
19,601 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
./.devcontainer/ | ||
.env | ||
./.git/ | ||
./node_modeules/ | ||
./.snowpack/ | ||
./dist_local/ | ||
./dist/ | ||
./.github/ | ||
./cypress/ | ||
./cypress_php/ | ||
./.devcontainer/ | ||
./dist/ | ||
./dist_local/ | ||
./node_modules/ |
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,6 +1,17 @@ | ||
FROM node:19.8-bullseye AS build | ||
WORKDIR /build | ||
COPY src ./src | ||
COPY public ./public | ||
COPY index.html package*.json vite.config.js ./ | ||
RUN echo "$(ls)" | ||
RUN npm ci | ||
RUN npx vite build --outDir site | ||
|
||
FROM httpd:2.4.41-alpine | ||
RUN apk update; \ | ||
apk upgrade; | ||
COPY ./doenet_docker/apache/apache.conf /usr/local/apache2/conf/httpd.conf | ||
WORKDIR /usr/local/apache2 | ||
COPY --from=build /build/site ./htdocs | ||
COPY ./doenet_docker/apache/apache.conf ./conf/httpd.conf | ||
EXPOSE 80 | ||
EXPOSE 443 |
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 @@ | ||
FROM node:19.8-bullseye | ||
|
||
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >/etc/apt/sources.list.d/bullseye-backports.list | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install \ | ||
# for docker from source | ||
apt-transport-https \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
lsb-release \ | ||
#update git to support ssh signing | ||
git/bullseye-backports | ||
|
||
WORKDIR / | ||
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | ||
|
||
RUN echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ | ||
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install docker-ce docker-ce-cli containerd.io | ||
|
||
RUN rm -rf /var/lib/apt/lists/* &&\ | ||
apt-get -y autoremove && \ | ||
apt-get clean | ||
|
||
RUN mkdir -p /home/node/workspace/node_modules && chown -R node:node /home/node/workspace | ||
WORKDIR /home/node/workspace | ||
COPY --chown=node:node package*.json vite.config.js ./ | ||
USER node | ||
|
||
CMD ["npm", "run", "dev"] |
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,3 +1,3 @@ | ||
FROM mysql:5.7.29 | ||
FROM mysql:8.0.32 | ||
ENV MYSQL_DATABASE doenet_local | ||
ENV MYSQL_ROOT_PASSWORD helloworld |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
src="https://cdn.jsdelivr.net/npm/[email protected]/distrib/jsxgraphcore.js"></script> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/distrib/jsxgraph.css" /> | ||
<script src="https://www.youtube.com/iframe_api"></script> | ||
<script type="text/javascript" src="/media/geogebra/scripts/deployggb.js"></script> | ||
<script type="text/javascript" src="./src/Media/geogebra/scripts/deployggb.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/ericnograles/[email protected]/dist/index.js"></script> | ||
<!-- <link rel="stylesheet" type="text/css" href="/src/css/handsontable.full.css" /> --> | ||
|
||
|
@@ -23,58 +23,55 @@ | |
font-family: 'Open Sans'; | ||
font-style: normal; | ||
font-weight: 300; | ||
src: | ||
url('../../media/fonts/files/open-sans-v18-latin-light.woff2') format('woff2'), | ||
url('../../media/fonts/files/open-sans-v18-latin-light.woff') format('woff'); | ||
src: url('/fonts/files/open-sans-v18-latin-light.woff2') format('woff2'), | ||
url('/fonts/files/open-sans-v18-latin-light.woff') format('woff'); | ||
} | ||
|
||
@font-face { | ||
font-family: 'Open Sans'; | ||
font-style: italic; | ||
font-weight: 300; | ||
src: | ||
url('../../media/fonts/files/open-sans-v18-latin-light-italic.woff2') format('woff2'), | ||
url('../../media/fonts/files/open-sans-v18-latin-light-italic.woff') format('woff'); | ||
src: url('/fonts/files/open-sans-v18-latin-light-italic.woff2') | ||
format('woff2'), | ||
url('/fonts/files/open-sans-v18-latin-light-italic.woff') | ||
format('woff'); | ||
} | ||
|
||
/* Regular fonts */ | ||
@font-face { | ||
font-family: 'Open Sans'; | ||
font-style: normal; | ||
font-weight: normal; | ||
src: | ||
url('../../media/fonts/files/open-sans-v18-latin-regular.woff2') format('woff2'), | ||
url('../../media/fonts/files/open-sans-v18-latin-regular.woff') format('woff'); | ||
src: url('/fonts/files/open-sans-v18-latin-regular.woff2') | ||
format('woff2'), | ||
url('/fonts/files/open-sans-v18-latin-regular.woff') format('woff'); | ||
} | ||
|
||
@font-face { | ||
font-family: 'Open Sans'; | ||
font-style: italic; | ||
font-weight: normal; | ||
src: | ||
url('../../media/fonts/files/open-sans-v18-latin-italic.woff2') format('woff2'), | ||
url('../../media/fonts/files/open-sans-v18-latin-italic.woff') format('woff'); | ||
src: url('/fonts/files/open-sans-v18-latin-italic.woff2') | ||
format('woff2'), | ||
url('/fonts/files/open-sans-v18-latin-italic.woff') format('woff'); | ||
} | ||
|
||
/* Bold fonts */ | ||
@font-face { | ||
font-family: 'Open Sans'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: url('../../media/fonts/files/open-sans-v18-latin-700.woff2') | ||
format('woff2'), | ||
url('../../media/fonts/files/open-sans-v18-latin-700.woff') | ||
format('woff'); | ||
src: url('/fonts/files/open-sans-v18-latin-700.woff2') format('woff2'), | ||
url('/fonts/files/open-sans-v18-latin-700.woff') format('woff'); | ||
} | ||
|
||
@font-face { | ||
font-family: 'Open Sans'; | ||
font-style: italic; | ||
font-weight: 700; | ||
src: url('../../media/fonts/files/open-sans-v18-latin-700italic.woff2') | ||
src: url('/fonts/files/open-sans-v18-latin-700italic.woff2') | ||
format('woff2'), | ||
url('../../media/fonts/files/open-sans-v18-latin-700italic.woff') | ||
format('woff'); | ||
url('/fonts/files/open-sans-v18-latin-700italic.woff') format('woff'); | ||
} | ||
html { | ||
font-family: 'Open Sans' !important; | ||
|
@@ -95,15 +92,15 @@ | |
--lightGreen: #a6f19f; | ||
--lightYellow: #f5ed85; | ||
--whiteBlankLink: #6d4445; | ||
--mainYellow: #94610A; | ||
--mainYellow: #94610a; | ||
--mainPurple: #4a03d9; | ||
} | ||
|
||
[data-theme='dark'] { | ||
font-family: 'Open Sans' !important; | ||
--menuWidth: 220px; | ||
--mainBlue: #1a5a99; | ||
--lightBlue: hsl(209,54%,82%); | ||
--lightBlue: hsl(209, 54%, 82%); | ||
--solidLightBlue: #1a5a99; | ||
--mainGray: #a9a9a9; | ||
--mediumGray: #949494; | ||
|
@@ -118,7 +115,7 @@ | |
--canvastext: white; | ||
--lightGreen: #a6f19f; | ||
--lightYellow: #f5ed85; | ||
--whiteBlankLink: #A9ABE5; | ||
--whiteBlankLink: #a9abe5; | ||
--mainYellow: #efab34; | ||
--mainPurple: #4a03d9; | ||
|
||
|
@@ -131,6 +128,13 @@ | |
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/index.js"></script> | ||
<script> | ||
/** | ||
* this is a hack for react-mathqill | ||
* error: global is not defined | ||
*/ | ||
var global = global || window; | ||
</script> | ||
<script type="module" src="./src/index.jsx"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.