mohe2015 / schule

Wiki, Stundenplan und Vertretungsplan für moderne Browser
GNU Affero General Public License v3.0
0 stars 0 forks source link
lisp offline-first schule stundenplan vertretungsplan wiki

schule

Requirements

Installation

./setup.sh

(ql:quickload :schule)
;;(schule.db:do-generate-migrations)
(schule.db:do-migrate)
(schule:development)
(in-package :schule.web)
(create-dao 'user :name "admin" :hash (hash "admin") :group "admin")
(create-dao 'user :name "Anonymous" :hash (hash "xfg3zte94h") :group "anonymous")
(create-dao 'user :name "<your name>" :hash (hash "fjd8sh3l2h") :group "user"))
npm install html-minifier -g
html-minifier --collapse-boolean-attributes --collapse-inline-tag-whitespace --collapse-whitespace --decode-entities --remove-attribute-quotes --remove-comments --remove-empty-attributes --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-style-link-type-attributes --remove-tag-whitespace --sort-attributes --sort-class-name --trim-custom-fragments --use-short-doctype -o www/index.html www/index.html
java -jar closure-compiler-v20181210.jar --js_output_file=www/s/result.js --externs externs/jquery-3.3.js www/s/jquery-3.3.1.js www/s/popper.js www/s/bootstrap.js www/s/summernote-bs4.js www/s/visual-diff.js www/s/index.js
npm i -g purgecss
purgecss --content www/index.html --css www/s/all.css --css www/s/bootstrap.min.css --css www/s/index.css --css www/s/summernote-bs4.css -o www/s/ --content www/s/*.js

Coding

read -s -p "substitution-schedule password: " SUBSTITUTION_SCHEDULE_PASSWORD
RUST_BACKTRACE=1 SUBSTITUTION_SCHEDULE_USERNAME=schueler SUBSTITUTION_SCHEDULE_PASSWORD=$SUBSTITUTION_SCHEDULE_PASSWORD ros emacs

Browser debugging

Accessing modules

import('../js/utils.lisp').then(m => module = m)

Buggy quicklisp

cd $HOME/.roswell/local-projects
find -L -name '*.asd' > system-index.txt

(declaim (optimize (compilation-speed 0) (debug 3) (safety 3) (space 0) (speed 0)))