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.
upgrade development to vite (Doenet#2008)
- Loading branch information
1 parent
6fa3a61
commit ed43229
Showing
349 changed files
with
2,497 additions
and
29,136 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,18 @@ | ||
FROM node:19.8-bullseye AS build | ||
WORKDIR /build | ||
COPY package*.json ./ | ||
RUN npm ci | ||
COPY index.html vite.config.js ./ | ||
COPY src ./src | ||
COPY public ./public | ||
ARG BUILD_MODE | ||
RUN npm run build -- --outDir site --mode ${BUILD_MODE} | ||
|
||
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 ./doenet_docker/apache/apache.conf ./conf/httpd.conf | ||
COPY --from=build /build/site ./htdocs | ||
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
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 |
---|---|---|
|
@@ -5,12 +5,22 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Doenet</title> | ||
<link rel="shortcut icon" href="/favicon.ico" /> | ||
<script type="text/javascript" charset="UTF-8" | ||
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> | ||
<!-- <link rel="stylesheet" type="text/css" href="/src/css/handsontable.full.css" /> --> | ||
<script | ||
type="text/javascript" | ||
charset="UTF-8" | ||
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="module" | ||
src="./src/Media/geogebra/scripts/deployggb.js" | ||
></script> | ||
<!-- <link rel="stylesheet" type="text/css" href="/src/css/handsontable.full.css" /> --> | ||
|
||
<!-- <link | ||
rel="stylesheet" | ||
|
@@ -22,58 +32,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; | ||
|
@@ -94,15 +101,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; | ||
--donutBody: #eea177; | ||
|
@@ -116,14 +123,21 @@ | |
--canvastext: white; | ||
--lightGreen: #a6f19f; | ||
--lightYellow: #f5ed85; | ||
--whiteBlankLink: #A9ABE5; | ||
--whiteBlankLink: #a9abe5; | ||
--mainYellow: #efab34; | ||
--mainPurple: #4a03d9; | ||
} | ||
</style> | ||
</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.