about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
* rendertext: fix ansi escape regressionbptato2022-12-281-0/+1
|
* layout/engine: get rid of dom dependencybptato2022-12-276-56/+96
| | | | Layout should only depend on cascading.
* Proper support for tabsbptato2022-12-278-73/+78
|
* rendertext: fix tab widthbptato2022-12-271-8/+7
|
* dom: fix collection cachingbptato2022-12-274-52/+108
| | | | Use ids instead of pure pointers, so we can utilize the JS finalizer.
* Implement DOMTokenList, item functions for collectionsbptato2022-12-262-35/+126
|
* getElementsByClassName on Document and Elementbptato2022-12-261-3/+9
| | | | Instead of Node.
* Correct attribute functions, de-extern jserrbptato2022-12-264-79/+65
| | | | | | Instead of unnecessarily marking every jserr function as *, add the used pragma (so the C compiler can get rid of them later.) Also, use the correct definition of attribute namespace.
* Consistent naming of parseURL, non-public newURLParamsbptato2022-12-262-10/+10
|
* dom: correct constructors, more create functionsbptato2022-12-264-46/+117
|
* DOM: implement many new methodsbptato2022-12-264-11/+187
|
* dom: add navigator objectbptato2022-12-262-2/+58
|
* decoderstream: fix some bugs that broke readAllbptato2022-12-261-3/+9
|
* layout/engine: calculate wrappervals only if neededbptato2022-12-261-2/+2
|
* Fix an anonymous table bugbptato2022-12-251-1/+7
| | | | | ...by flushing anonymous tables *before* inline layout is set (therefore avoiding placing them inside inline boxes.)
* default config: make the search function slightly more robustbptato2022-12-251-1/+1
| | | | For easier copy-pasting...
* container: fix requestLines not setting setxpre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-lass='logsubject'>Add font color presentational hintbptato2022-12-251-0/+6
|
* rendertext: fix tab weirdnessbptato2022-12-251-10/+8
|
* layout/engine: clean up & fix width computationbptato2022-12-252-163/+142
| | | | | Get rid of compwidth, fix some edge cases where boxes would be computed incorrectly, etc.
* css/values: fix some incorrectly accepted valuesbptato2022-12-211-18/+29
|
* Remove todobptato2022-12-211-1/+0
|
* dom: fix select default displaybptato2022-12-211-3/+15
|
* layout/engine: simplify a bitbptato2022-12-212-38/+29
|
* Update readmebptato2022-12-211-25/+17
|
* pager: proxy values in container; js: bugfixesbptato2022-12-209-149/+264
| | | | Also, a little bonus: w3m keybindings
* Fix JS_GetPropertyNames bindingsbptato2022-12-202-2/+4
|
* layout/engine: reset absolutes on relayoutbptato2022-12-201-0/+1
|
* Update readmebptato2022-12-201-3/+31
|
* Add unicode normalization, etcbptato2022-12-198-84/+156
|
* More DOM workbptato2022-12-1910-342/+660
|
* lineedit: fix crash in prevHist/nextHistbptato2022-12-191-0/+3
|
* File browser: sort filesbptato2022-12-191-1/+20
|
* More work on DOM (incl. bugfixes)bptato2022-12-194-216/+251
|
* Add file browserbptato2022-12-182-25/+75
|
* Add JS support to documentsbptato2022-12-1816-343/+1065
|
* Fix division by zero in table layoutbptato2022-12-171-6/+8
|
* Allow cycling through hover-texts with ubptato2022-12-165-44/+76
|
* htmltokenizer: fix after attribute value (quoted) bugbptato2022-12-161-1/+3
| | | | I forgot to change the last case when copy-pasting. Oops.
* Display text for img tag, background-imagebptato2022-12-167-59/+116
|
* Update visual home page, use name consistentlybptato2022-12-165-15/+43
|
* Fix a processFormat bugbptato2022-12-162-6/+8
|
* Remove obsolete buildInlineTableBoxbptato2022-12-161-27/+0
|
pan class="k">else # If not, clone it from upstream. if [ -z "$DSCIP_VERSION" ]; then # Check if using a release setup.sh, if not, clone from master. git clone "https://opencode.net/charadon/dscip" --depth 1 --branch "$DSCIP_VERSION" "$PROJECT_LOCATION" else git clone "https://opencode.net/charadon/dscip" "$PROJECT_LOCATION" fi install_templates || echo "Skipping templates as no Template Directory was set..." fi cd "$PROJECT_LOCATION" # Modifying config.sh with variables obtained from setup.sh sed -i "s}DSCIP_GITREPO=.*}DSCIP_GITREPO=\"$PROJECT_URL\"}g" config.sh sed -i "s/DSCIP_NAME=.*/DSCIP_NAME=\"$PROJECT_NAME\"/g" config.sh sed -i "s/DSCIP_BRANCH=.*/DSCIP_BRANCH=\"$PROJECT_BRANCH\"/g" config.sh # Done. Go back to CWD, and tell user how to activate DSCIP. set +x printf "\n" printf "\e[32mAll done. Be sure to add:\e[0m\n" echo "* * * * * $(dirname "$(readlink -f "$PROJECT_LOCATION")")/dscip" printf "\e[32mTo your crontab! Usually by using \`crontab -e\`\e[0m\n\n" printf "\e[32mAlternatively, you can run dscip as a daemon by modifying DSCIP_DAEMON in config.sh\n" printf "and creating a daemon for your system's init system.\e[0m\n\n" cd "$CWD" } # Non-interactive Mode set +u if [ ! "$1" = "" ]; then set -u while getopts ':n:d:u:b:t:lh' options; do case "${options}" in n) # Name PROJECT_NAME="$OPTARG" ;; d) # Directory to install to. PROJECT_LOCATION="$OPTARG" ;; u) # Git Repo URL PROJECT_URL="$OPTARG" ;; b) # Git Branch (Optional) PROJECT_BRANCH="$OPTARG" ;; t) # Template Directory (Optional) TEMPLATE_DIR="$OPTARG" ;; h) # Show Help Screen help_screen exit 0 ;; l) # Show License show_license exit 0 ;; *) echo "Invalid command-line switch. Aborting. See -h for more info." exit 1 ;; esac done check_config install_dscip exit 0 fi set -u # Interactive Mode echo "Welcome to DSCIP setup. This script will ask you a few questions." echo "Notes:" echo " 1. This script should be running as the user that will be building the software." echo " 2. Must have a cron daemon with the command: crontab -e, available." echo "By default, the script runs in interactive mode. But you can use command-line switches" echo "to use the set up script non-interactively. Use -h for more info." printf "\n" echo "If you feel you are ready. Press enter, otherwise press Ctrl-C to cancel." read -r ALL_CORRECT="false" question_name() { PROJECT_NAME="" while [ "$PROJECT_NAME" = "" ]; do printf "What is the name of the project?: " read -r PROJECT_NAME done } question_location() { PROJECT_LOCATION="/home/$USER/$PROJECT_NAME" NEW_PROJECT_LOCATION="" printf 'Where do you want to install DSCIP? (Default: %s): ' "$PROJECT_LOCATION" read -r NEW_PROJECT_LOCATION if [ "$NEW_PROJECT_LOCATION" = "" ]; then return 0 else PROJECT_LOCATION="$NEW_PROJECT_LOCATION" fi } question_giturl() { PROJECT_URL="" while [ "$PROJECT_URL" = "" ]; do printf "What is the URL of your Git Repo?: " read -r PROJECT_URL done } question_gitbranch() { PROJECT_BRANCH="master" printf 'What branch from the Git Repo do you want to use? (Default: %s): ' "$PROJECT_BRANCH" read -r PROJECT_BRANCH if [ "$PROJECT_BRANCH" = "" ]; then PROJECT_BRANCH="master" fi } question_templates() { TEMPLATE_DIR="" printf "If you have a template directory of the pre,post,build,failed,config.sh scripts.\nEnter it's location here, otherwise press Enter: " read -r TEMPLATE_DIR } question_allcorrect() { echo "Is all this information correct? Press the number to edit specific variables:" echo "1. Project Name: $PROJECT_NAME" echo "2. DSCIP Location: $PROJECT_LOCATION" echo "3. Git URL: $PROJECT_URL" echo "4. Git Branch: $PROJECT_BRANCH" echo "5. Template Directory: $TEMPLATE_DIR" printf "\nIf all information is correct. Press Enter.\nOtherwise, use a number and then press enter to edit: " } question_name printf "\n" question_location printf "\n" question_giturl printf "\n" question_gitbranch printf "\n" question_templates printf "\n" CHOICE="" while [ "$ALL_CORRECT" = "false" ]; do question_allcorrect read -r CHOICE printf "\n" case "$CHOICE" in 1) question_name ;; 2) question_location ;; 3) question_giturl ;; 4) question_gitbranch ;; 5) question_templates ;; *) ALL_CORRECT="true" ;; esac printf "\n" done check_config install_dscip