Skip to content

Commit

Permalink
Update quizms
Browse files Browse the repository at this point in the history
  • Loading branch information
bortoz committed Jan 20, 2024
1 parent 6f58d31 commit 07749fc
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 43 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- run: yarn install
- run: yarn export
- uses: peaceiris/actions-gh-pages@v3

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
"version": "1.0.0",
"private": true,
"scripts": {
"postinstall": "playwright install",
"dev": "quizms dev",
"fmt": "prettier --write .",
"export": "quizms export --training"
"build": "quizms build --training"
},
"dependencies": {
"@mdx-js/react": "^3.0",
"@olinfo/quizms": "^1.0.0-beta.1",
"@olinfo/quizms": "^1.0.0-beta.2",
"@tailwindcss/typography": "^0.5.10",
"@types/react": "^18",
"autoprefixer": "^10.4.16",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/olinfo-auth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useEffect, useState } from "react";
import cookie from "cookie";
import { jwtDecode } from "jwt-decode";

import { NoAuth, useStudent } from "quizms/student";
import "quizms/css";
import { NoAuth, useStudent } from "@olinfo/quizms/student";
import "@olinfo/quizms/css";

/** @type {typeof NoAuth} */
export const OlinfoAuth = ({ children, ...props }) => {
Expand Down
42 changes: 8 additions & 34 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@olinfo/quizms@^1.0.0-beta.1":
version "1.0.0-beta.1"
resolved "https://git.olinfo.it/api/packages/bortoz/npm/%40olinfo%2Fquizms/-/1.0.0-beta.1/quizms-1.0.0-beta.1.tgz#ff18bfe289c67d3f48a3456f30ed8bc7042f5b2f"
integrity sha512-BUJ7ji5dGLF4GkWpTrpF9QLcDv67T4jJLTZ41yZIQ1W1ST53WRvbPURdVqVUmphjuiCJEO85uGhXie1v2sOBWA==
"@olinfo/quizms@^1.0.0-beta.2":
version "1.0.0-beta.2"
resolved "https://git.olinfo.it/api/packages/bortoz/npm/%40olinfo%2Fquizms/-/1.0.0-beta.2/quizms-1.0.0-beta.2.tgz#689d212e924b15bae873a4997204ddba3bca67f2"
integrity sha512-3jcBYpl8kCwt90we6xiJ9GDgOEVm/tP1GZ/JKDLm/5HzsWYsU9kQt3A8avQXs8gKM4vldOVn94f3VGlhKtexGg==
dependencies:
"@ag-grid-community/client-side-row-model" "^31.0"
"@ag-grid-community/core" "^31.0"
Expand All @@ -775,7 +775,6 @@
"@mdx-js/rollup" "^3.0"
"@noble/hashes" "^1.3"
"@swc/plugin-transform-imports" "^1.5"
"@types/react" "^18.0"
"@vitejs/plugin-react-swc" "^3.3"
acorn "^8.10"
blockly "^10.0"
Expand Down Expand Up @@ -817,7 +816,6 @@
remark-smartypants "^2.0"
rollup "^4.9"
rollup-plugin-license "^3.2"
rollup-plugin-visualizer "^5.11"
sharp "^0.32"
smol-toml "^1.1"
svgo "^3.0"
Expand Down Expand Up @@ -1268,7 +1266,7 @@
resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.7.tgz#50ae4353eaaddc04044279812f52c8c65857dbcb"
integrity sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==

"@types/react@^18", "@types/react@^18.0":
"@types/react@^18":
version "18.2.48"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.48.tgz#11df5664642d0bd879c1f58bc1d37205b064e8f1"
integrity sha512-qboRCl6Ie70DQQG9hhNREz81jqC1cs9EVNcjQ1AU+jH6NFfSAhVVbrrY/+nSF+Bsk4AOwm9Qa61InvMCyV+H3w==
Expand Down Expand Up @@ -2235,11 +2233,6 @@ default-browser@^4.0.0:
execa "^7.1.1"
titleize "^3.0.0"

define-lazy-prop@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f"
integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==

define-lazy-prop@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz#dbb19adfb746d7fc6d734a06b72f4a00d021255f"
Expand Down Expand Up @@ -3264,7 +3257,7 @@ is-decimal@^2.0.0:
resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-2.0.1.tgz#9469d2dc190d0214fd87d78b78caecc0cc14eef7"
integrity sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==

is-docker@^2.0.0, is-docker@^2.1.1:
is-docker@^2.0.0:
version "2.2.1"
resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa"
integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==
Expand Down Expand Up @@ -4816,15 +4809,6 @@ onetime@^6.0.0:
dependencies:
mimic-fn "^4.0.0"

open@^8.4.0:
version "8.4.2"
resolved "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9"
integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==
dependencies:
define-lazy-prop "^2.0.0"
is-docker "^2.1.1"
is-wsl "^2.2.0"

open@^9.1.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/open/-/open-9.1.0.tgz#684934359c90ad25742f5a26151970ff8c6c80b6"
Expand Down Expand Up @@ -5505,16 +5489,6 @@ rollup-plugin-license@^3.2:
spdx-expression-validate "~2.0.0"
spdx-satisfies "~5.0.1"

rollup-plugin-visualizer@^5.11:
version "5.12.0"
resolved "https://registry.yarnpkg.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.12.0.tgz#661542191ce78ee4f378995297260d0c1efb1302"
integrity sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ==
dependencies:
open "^8.4.0"
picomatch "^2.3.1"
source-map "^0.7.4"
yargs "^17.5.1"

rollup@^4.2.0, rollup@^4.9:
version "4.9.5"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.9.5.tgz#62999462c90f4c8b5d7c38fc7161e63b29101b05"
Expand Down Expand Up @@ -5675,7 +5649,7 @@ source-map-js@^1.0.1, source-map-js@^1.0.2:
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==

source-map@^0.7.0, source-map@^0.7.4:
source-map@^0.7.0:
version "0.7.4"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656"
integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==
Expand Down Expand Up @@ -6518,7 +6492,7 @@ yargs-parser@^21.1.1:
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==

yargs@^17.5.1, yargs@^17.7.2:
yargs@^17.7.2:
version "17.7.2"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269"
integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==
Expand Down

0 comments on commit 07749fc

Please sign in to comment.