├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
└── workflows
│ ├── dockerimage.yml
│ ├── dockerpublishjudge.yml
│ └── dockerpublishweb.yml
├── .gitignore
├── DB
├── 2015_05-04_01_aurora_main.sql
├── 2017_04_15_01_currentContest_variable.sql
└── 2017_04_15_02_sample_input_output_field.sql
├── Judge
├── Dockerfile
├── README.md
├── depricated
│ ├── README.md
│ ├── arch_setup.sh
│ ├── distributer.py
│ └── ubuntu_setup.sh
├── env
│ ├── input.txt
│ └── output.txt
├── io_cache
│ ├── Aurora Online Judge - Problem ID 1 - Input.txt
│ └── Aurora Online Judge - Problem ID 1 - Output.txt
├── judge.py
└── requirements.txt
├── LICENSE
├── PULL_REQUEST_TEMPLATE.md
├── README.md
├── SECURITY.md
├── Scripts
├── .gitignore
├── config.py
└── rankings.py
├── Web Interface
├── .gitignore
├── .htaccess
├── 404.html
├── 500.html
├── Dockerfile
├── README.md
├── broadcast.php
├── codemirror
│ ├── .gitattributes
│ ├── .gitignore
│ ├── .travis.yml
│ ├── addon
│ │ ├── comment
│ │ │ └── comment.js
│ │ ├── dialog
│ │ │ ├── dialog.css
│ │ │ └── dialog.js
│ │ ├── display
│ │ │ └── placeholder.js
│ │ ├── edit
│ │ │ ├── closebrackets.js
│ │ │ ├── closetag.js
│ │ │ ├── continuecomment.js
│ │ │ ├── continuelist.js
│ │ │ └── matchbrackets.js
│ │ ├── fold
│ │ │ ├── brace-fold.js
│ │ │ ├── foldcode.js
│ │ │ ├── indent-fold.js
│ │ │ └── xml-fold.js
│ │ ├── hint
│ │ │ ├── html-hint.js
│ │ │ ├── javascript-hint.js
│ │ │ ├── pig-hint.js
│ │ │ ├── python-hint.js
│ │ │ ├── show-hint.css
│ │ │ ├── show-hint.js
│ │ │ └── xml-hint.js
│ │ ├── lint
│ │ │ ├── javascript-lint.js
│ │ │ ├── json-lint.js
│ │ │ ├── lint.css
│ │ │ └── lint.js
│ │ ├── mode
│ │ │ ├── loadmode.js
│ │ │ ├── multiplex.js
│ │ │ └── overlay.js
│ │ ├── runmode
│ │ │ ├── colorize.js
│ │ │ ├── runmode-standalone.js
│ │ │ ├── runmode.js
│ │ │ └── runmode.node.js
│ │ ├── search
│ │ │ ├── match-highlighter.js
│ │ │ ├── search.js
│ │ │ └── searchcursor.js
│ │ └── selection
│ │ │ ├── active-line.js
│ │ │ └── mark-selection.js
│ ├── bin
│ │ ├── compress
│ │ ├── lint
│ │ └── source-highlight
│ ├── lib
│ │ ├── codemirror.css
│ │ └── codemirror.js
│ ├── mode
│ │ ├── apl
│ │ │ ├── apl.js
│ │ │ └── index.html
│ │ ├── asterisk
│ │ │ ├── asterisk.js
│ │ │ └── index.html
│ │ ├── clike
│ │ │ ├── clike.js
│ │ │ ├── index.html
│ │ │ └── scala.html
│ │ ├── clojure
│ │ │ ├── clojure.js
│ │ │ └── index.html
│ │ ├── cobol
│ │ │ ├── cobol.js
│ │ │ └── index.html
│ │ ├── coffeescript
│ │ │ ├── LICENSE
│ │ │ ├── coffeescript.js
│ │ │ └── index.html
│ │ ├── commonlisp
│ │ │ ├── commonlisp.js
│ │ │ └── index.html
│ │ ├── css
│ │ │ ├── css.js
│ │ │ ├── index.html
│ │ │ ├── scss.html
│ │ │ ├── scss_test.js
│ │ │ └── test.js
│ │ ├── d
│ │ │ ├── d.js
│ │ │ └── index.html
│ │ ├── diff
│ │ │ ├── diff.js
│ │ │ └── index.html
│ │ ├── ecl
│ │ │ ├── ecl.js
│ │ │ └── index.html
│ │ ├── erlang
│ │ │ ├── erlang.js
│ │ │ └── index.html
│ │ ├── gas
│ │ │ ├── gas.js
│ │ │ └── index.html
│ │ ├── gfm
│ │ │ ├── gfm.js
│ │ │ ├── index.html
│ │ │ └── test.js
│ │ ├── go
│ │ │ ├── go.js
│ │ │ └── index.html
│ │ ├── groovy
│ │ │ ├── groovy.js
│ │ │ └── index.html
│ │ ├── haml
│ │ │ ├── haml.js
│ │ │ ├── index.html
│ │ │ └── test.js
│ │ ├── haskell
│ │ │ ├── haskell.js
│ │ │ └── index.html
│ │ ├── haxe
│ │ │ ├── haxe.js
│ │ │ └── index.html
│ │ ├── htmlembedded
│ │ │ ├── htmlembedded.js
│ │ │ └── index.html
│ │ ├── htmlmixed
│ │ │ ├── htmlmixed.js
│ │ │ └── index.html
│ │ ├── http
│ │ │ ├── http.js
│ │ │ └── index.html
│ │ ├── javascript
│ │ │ ├── index.html
│ │ │ ├── javascript.js
│ │ │ └── typescript.html
│ │ ├── jinja2
│ │ │ ├── index.html
│ │ │ └── jinja2.js
│ │ ├── less
│ │ │ ├── index.html
│ │ │ └── less.js
│ │ ├── livescript
│ │ │ ├── LICENSE
│ │ │ ├── index.html
│ │ │ ├── livescript.js
│ │ │ └── livescript.ls
│ │ ├── lua
│ │ │ ├── index.html
│ │ │ └── lua.js
│ │ ├── markdown
│ │ │ ├── index.html
│ │ │ ├── markdown.js
│ │ │ └── test.js
│ │ ├── meta.js
│ │ ├── mirc
│ │ │ ├── index.html
│ │ │ └── mirc.js
│ │ ├── ntriples
│ │ │ ├── index.html
│ │ │ └── ntriples.js
│ │ ├── ocaml
│ │ │ ├── index.html
│ │ │ └── ocaml.js
│ │ ├── pascal
│ │ │ ├── LICENSE
│ │ │ ├── index.html
│ │ │ └── pascal.js
│ │ ├── perl
│ │ │ ├── LICENSE
│ │ │ ├── index.html
│ │ │ └── perl.js
│ │ ├── php
│ │ │ ├── index.html
│ │ │ └── php.js
│ │ ├── pig
│ │ │ ├── index.html
│ │ │ └── pig.js
│ │ ├── properties
│ │ │ ├── index.html
│ │ │ └── properties.js
│ │ ├── python
│ │ │ ├── LICENSE.txt
│ │ │ ├── index.html
│ │ │ └── python.js
│ │ ├── q
│ │ │ ├── index.html
│ │ │ └── q.js
│ │ ├── r
│ │ │ ├── LICENSE
│ │ │ ├── index.html
│ │ │ └── r.js
│ │ ├── rpm
│ │ │ ├── changes
│ │ │ │ ├── changes.js
│ │ │ │ └── index.html
│ │ │ └── spec
│ │ │ │ ├── index.html
│ │ │ │ ├── spec.css
│ │ │ │ └── spec.js
│ │ ├── rst
│ │ │ ├── LICENSE.txt
│ │ │ ├── index.html
│ │ │ └── rst.js
│ │ ├── ruby
│ │ │ ├── LICENSE
│ │ │ ├── index.html
│ │ │ └── ruby.js
│ │ ├── rust
│ │ │ ├── index.html
│ │ │ └── rust.js
│ │ ├── sass
│ │ │ ├── index.html
│ │ │ └── sass.js
│ │ ├── scheme
│ │ │ ├── index.html
│ │ │ └── scheme.js
│ │ ├── shell
│ │ │ ├── index.html
│ │ │ └── shell.js
│ │ ├── sieve
│ │ │ ├── LICENSE
│ │ │ ├── index.html
│ │ │ └── sieve.js
│ │ ├── smalltalk
│ │ │ ├── index.html
│ │ │ └── smalltalk.js
│ │ ├── smarty
│ │ │ ├── index.html
│ │ │ └── smarty.js
│ │ ├── sparql
│ │ │ ├── index.html
│ │ │ └── sparql.js
│ │ ├── sql
│ │ │ ├── index.html
│ │ │ └── sql.js
│ │ ├── stex
│ │ │ ├── index.html
│ │ │ ├── stex.js
│ │ │ └── test.js
│ │ ├── tcl
│ │ │ ├── index.html
│ │ │ └── tcl.js
│ │ ├── tiddlywiki
│ │ │ ├── index.html
│ │ │ ├── tiddlywiki.css
│ │ │ └── tiddlywiki.js
│ │ ├── tiki
│ │ │ ├── index.html
│ │ │ ├── tiki.css
│ │ │ └── tiki.js
│ │ ├── turtle
│ │ │ ├── index.html
│ │ │ └── turtle.js
│ │ ├── vb
│ │ │ ├── LICENSE.txt
│ │ │ ├── index.html
│ │ │ └── vb.js
│ │ ├── vbscript
│ │ │ ├── index.html
│ │ │ └── vbscript.js
│ │ ├── velocity
│ │ │ ├── index.html
│ │ │ └── velocity.js
│ │ ├── verilog
│ │ │ ├── index.html
│ │ │ └── verilog.js
│ │ ├── xml
│ │ │ ├── index.html
│ │ │ └── xml.js
│ │ ├── xquery
│ │ │ ├── LICENSE
│ │ │ ├── index.html
│ │ │ ├── test.js
│ │ │ └── xquery.js
│ │ ├── yaml
│ │ │ ├── index.html
│ │ │ └── yaml.js
│ │ └── z80
│ │ │ ├── index.html
│ │ │ └── z80.js
│ └── theme
│ │ ├── ambiance-mobile.css
│ │ ├── ambiance.css
│ │ ├── blackboard.css
│ │ ├── cobalt.css
│ │ ├── eclipse.css
│ │ ├── elegant.css
│ │ ├── erlang-dark.css
│ │ ├── lesser-dark.css
│ │ ├── midnight.css
│ │ ├── monokai.css
│ │ ├── neat.css
│ │ ├── night.css
│ │ ├── rubyblue.css
│ │ ├── solarized.css
│ │ ├── twilight.css
│ │ ├── vibrant-ink.css
│ │ ├── xq-dark.css
│ │ └── xq-light.css
├── components.php
├── config.php
├── css
│ ├── bootstrap-theme.css
│ ├── bootstrap-theme.css.map
│ ├── bootstrap-theme.min.css
│ ├── bootstrap-theme.min.css.map
│ ├── bootstrap.css
│ ├── bootstrap.css.map
│ ├── bootstrap.min.css
│ ├── bootstrap.min.css.map
│ ├── helper.css
│ ├── style.css
│ └── try.css
├── files
│ ├── Leaderboard.php
│ ├── LiveContestRanking.php
│ ├── SSE_Util.php
│ ├── adminbroadcast.php
│ ├── adminclar.php
│ ├── admincontest.php
│ ├── admineditorial.php
│ ├── admingroup.php
│ ├── adminjudge.php
│ ├── adminlog.php
│ ├── adminproblem.php
│ ├── adminteam.php
│ ├── contact.php
│ ├── contests.php
│ ├── date.php
│ ├── doc.php
│ ├── edit.php
│ ├── editorial.php
│ ├── faq.php
│ ├── home.php
│ ├── preparecontest.php
│ ├── problems.php
│ ├── rank.php
│ ├── rank_old.php
│ ├── rankings.php
│ ├── register.php
│ ├── rejudge.php
│ ├── status.php
│ ├── submissions.php
│ ├── submit.php
│ ├── teams.php
│ └── viewsolution.php
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
├── functions.php
├── img
│ ├── favicon.png
│ ├── glyphicons-halflings-white.png
│ ├── glyphicons-halflings.png
│ └── wood_1.png
├── index.php
├── js
│ ├── bootstrap.js
│ ├── bootstrap.min.js
│ ├── custom.js
│ ├── jquery-3.1.0.min.js
│ ├── jquery.js
│ ├── npm.js
│ ├── plugin.js
│ └── tinymce
│ │ ├── plugins
│ │ ├── advlist
│ │ │ └── plugin.min.js
│ │ ├── anchor
│ │ │ └── plugin.min.js
│ │ ├── autolink
│ │ │ └── plugin.min.js
│ │ ├── autoresize
│ │ │ └── plugin.min.js
│ │ ├── autosave
│ │ │ └── plugin.min.js
│ │ ├── bbcode
│ │ │ └── plugin.min.js
│ │ ├── charmap
│ │ │ └── plugin.min.js
│ │ ├── code
│ │ │ └── plugin.min.js
│ │ ├── colorpicker
│ │ │ └── plugin.min.js
│ │ ├── contextmenu
│ │ │ └── plugin.min.js
│ │ ├── directionality
│ │ │ └── plugin.min.js
│ │ ├── emoticons
│ │ │ ├── img
│ │ │ │ ├── smiley-cool.gif
│ │ │ │ ├── smiley-cry.gif
│ │ │ │ ├── smiley-embarassed.gif
│ │ │ │ ├── smiley-foot-in-mouth.gif
│ │ │ │ ├── smiley-frown.gif
│ │ │ │ ├── smiley-innocent.gif
│ │ │ │ ├── smiley-kiss.gif
│ │ │ │ ├── smiley-laughing.gif
│ │ │ │ ├── smiley-money-mouth.gif
│ │ │ │ ├── smiley-sealed.gif
│ │ │ │ ├── smiley-smile.gif
│ │ │ │ ├── smiley-surprised.gif
│ │ │ │ ├── smiley-tongue-out.gif
│ │ │ │ ├── smiley-undecided.gif
│ │ │ │ ├── smiley-wink.gif
│ │ │ │ └── smiley-yell.gif
│ │ │ └── plugin.min.js
│ │ ├── example
│ │ │ ├── dialog.html
│ │ │ └── plugin.min.js
│ │ ├── example_dependency
│ │ │ └── plugin.min.js
│ │ ├── fullpage
│ │ │ └── plugin.min.js
│ │ ├── fullscreen
│ │ │ └── plugin.min.js
│ │ ├── hr
│ │ │ └── plugin.min.js
│ │ ├── image
│ │ │ └── plugin.min.js
│ │ ├── importcss
│ │ │ └── plugin.min.js
│ │ ├── insertdatetime
│ │ │ └── plugin.min.js
│ │ ├── layer
│ │ │ └── plugin.min.js
│ │ ├── legacyoutput
│ │ │ └── plugin.min.js
│ │ ├── link
│ │ │ └── plugin.min.js
│ │ ├── lists
│ │ │ └── plugin.min.js
│ │ ├── media
│ │ │ ├── moxieplayer.swf
│ │ │ └── plugin.min.js
│ │ ├── nonbreaking
│ │ │ └── plugin.min.js
│ │ ├── noneditable
│ │ │ └── plugin.min.js
│ │ ├── pagebreak
│ │ │ └── plugin.min.js
│ │ ├── paste
│ │ │ └── plugin.min.js
│ │ ├── preview
│ │ │ └── plugin.min.js
│ │ ├── print
│ │ │ └── plugin.min.js
│ │ ├── save
│ │ │ └── plugin.min.js
│ │ ├── searchreplace
│ │ │ └── plugin.min.js
│ │ ├── spellchecker
│ │ │ └── plugin.min.js
│ │ ├── tabfocus
│ │ │ └── plugin.min.js
│ │ ├── table
│ │ │ └── plugin.min.js
│ │ ├── template
│ │ │ └── plugin.min.js
│ │ ├── textcolor
│ │ │ └── plugin.min.js
│ │ ├── textpattern
│ │ │ └── plugin.min.js
│ │ ├── visualblocks
│ │ │ ├── css
│ │ │ │ └── visualblocks.css
│ │ │ └── plugin.min.js
│ │ ├── visualchars
│ │ │ └── plugin.min.js
│ │ └── wordcount
│ │ │ └── plugin.min.js
│ │ ├── skins
│ │ └── lightgray
│ │ │ ├── content.inline.min.css
│ │ │ ├── content.min.css
│ │ │ ├── fonts
│ │ │ ├── readme.md
│ │ │ ├── tinymce-small.dev.svg
│ │ │ ├── tinymce-small.eot
│ │ │ ├── tinymce-small.svg
│ │ │ ├── tinymce-small.ttf
│ │ │ ├── tinymce-small.woff
│ │ │ ├── tinymce.dev.svg
│ │ │ ├── tinymce.eot
│ │ │ ├── tinymce.svg
│ │ │ ├── tinymce.ttf
│ │ │ └── tinymce.woff
│ │ │ ├── img
│ │ │ ├── anchor.gif
│ │ │ ├── loader.gif
│ │ │ ├── object.gif
│ │ │ └── trans.gif
│ │ │ ├── skin.ie7.min.css
│ │ │ └── skin.min.css
│ │ ├── themes
│ │ └── modern
│ │ │ └── theme.min.js
│ │ └── tinymce.min.js
├── pdf.php
├── process.php
├── robots.txt
└── syntax-highlighter
│ ├── shBrushBash.js
│ ├── shBrushCSharp.js
│ ├── shBrushCpp.js
│ ├── shBrushJScript.js
│ ├── shBrushJava.js
│ ├── shBrushPascal.js
│ ├── shBrushPerl.js
│ ├── shBrushPhp.js
│ ├── shBrushPlain.js
│ ├── shBrushPython.js
│ ├── shBrushRuby.js
│ ├── shCore.js
│ └── shCoreDefault.css
├── conf
└── 000-default.conf
├── docker-compose.dev.yml
├── docker-compose.prod.yml
└── docker-compose.yml
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. iOS]
28 | - Browser [e.g. chrome, safari]
29 | - Version [e.g. 22]
30 |
31 | **Smartphone (please complete the following information):**
32 | - Device: [e.g. iPhone6]
33 | - OS: [e.g. iOS8.1]
34 | - Browser [e.g. stock browser, safari]
35 | - Version [e.g. 22]
36 |
37 | **Additional context**
38 | Add any other context about the problem here.
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
--------------------------------------------------------------------------------
/.github/workflows/dockerimage.yml:
--------------------------------------------------------------------------------
1 | name: Docker Build
2 |
3 | on:
4 | pull_request:
5 | branches: [ master ]
6 |
7 | jobs:
8 |
9 | build:
10 |
11 | runs-on: ubuntu-latest
12 |
13 | steps:
14 | - uses: actions/checkout@v2
15 | - name: Build the Docker image
16 | run: docker-compose build
17 |
18 | - name: Log into registry
19 | run: echo "${{ secrets.GH_ACTION_DOCKER_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
20 |
21 | - name: Push image
22 | run: |
23 | JUDGE_IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/judge
24 | WEB_IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/web
25 |
26 | # Strip git ref prefix from version
27 | VERSION=$(echo "${{ github.head_ref }}" | sed -e 's,.*/\(.*\),\1,')
28 |
29 | echo JUDGE_IMAGE_ID=$JUDGE_IMAGE_ID
30 | echo WEB_IMAGE_ID=$WEB_IMAGE_ID
31 | echo VERSION=$VERSION
32 |
33 | docker tag $JUDGE_IMAGE_ID $JUDGE_IMAGE_ID:$VERSION
34 | docker tag $WEB_IMAGE_ID $WEB_IMAGE_ID:$VERSION
35 | docker push $JUDGE_IMAGE_ID:$VERSION
36 | docker push $WEB_IMAGE_ID:$VERSION
--------------------------------------------------------------------------------
/.github/workflows/dockerpublishjudge.yml:
--------------------------------------------------------------------------------
1 | name: Judge Docker
2 |
3 | on:
4 | push:
5 | # Publish `master` as Docker `latest` image.
6 | branches:
7 | - master
8 |
9 | # Publish `v1.2.3` tags as releases.
10 | tags:
11 | - v*
12 |
13 | env:
14 | IMAGE_NAME: judge
15 |
16 | jobs:
17 | # Push image to GitHub Packages.
18 | # See also https://docs.docker.com/docker-hub/builds/
19 | push:
20 | runs-on: ubuntu-latest
21 | if: github.event_name == 'push'
22 |
23 | steps:
24 | - uses: actions/checkout@v2
25 |
26 | - name: Build image
27 | run: docker build ./Judge --tag $IMAGE_NAME
28 |
29 | - name: Log into registry
30 | run: echo "${{ secrets.GH_ACTION_DOCKER_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
31 |
32 | - name: Push image
33 | run: |
34 | IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
35 |
36 | # Strip git ref prefix from version
37 | VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
38 |
39 | # Strip "v" prefix from tag name
40 | [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
41 |
42 | # Use Docker `latest` tag convention
43 | [ "$VERSION" == "master" ] && VERSION=latest
44 |
45 | echo IMAGE_ID=$IMAGE_ID
46 | echo VERSION=$VERSION
47 |
48 | docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
49 | docker push $IMAGE_ID:$VERSION
50 |
--------------------------------------------------------------------------------
/.github/workflows/dockerpublishweb.yml:
--------------------------------------------------------------------------------
1 | name: Web Docker
2 |
3 | on:
4 | push:
5 | # Publish `master` as Docker `latest` image.
6 | branches:
7 | - master
8 |
9 | # Publish `v1.2.3` tags as releases.
10 | tags:
11 | - v*
12 |
13 | env:
14 | IMAGE_NAME: web
15 |
16 | jobs:
17 | # Push image to GitHub Packages.
18 | # See also https://docs.docker.com/docker-hub/builds/
19 | push:
20 | runs-on: ubuntu-latest
21 | if: github.event_name == 'push'
22 |
23 | steps:
24 | - uses: actions/checkout@v2
25 |
26 | - name: Build image
27 | run: docker build ./Web\ Interface --tag $IMAGE_NAME
28 |
29 | - name: Log into registry
30 | run: echo "${{ secrets.GH_ACTION_DOCKER_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
31 |
32 | - name: Push image
33 | run: |
34 | IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
35 |
36 | # Strip git ref prefix from version
37 | VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
38 |
39 | # Strip "v" prefix from tag name
40 | [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
41 |
42 | # Use Docker `latest` tag convention
43 | [ "$VERSION" == "master" ] && VERSION=latest
44 |
45 | echo IMAGE_ID=$IMAGE_ID
46 | echo VERSION=$VERSION
47 |
48 | docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
49 | docker push $IMAGE_ID:$VERSION
50 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | scripts/config.py
2 | *.pyc
3 | *~
4 | .idea
--------------------------------------------------------------------------------
/DB/2017_04_15_01_currentContest_variable.sql:
--------------------------------------------------------------------------------
1 | USE `aurora_main`;
2 | INSERT INTO `admin` (`variable`, `value`) VALUES
3 | ('currentContest', 'test');
--------------------------------------------------------------------------------
/DB/2017_04_15_02_sample_input_output_field.sql:
--------------------------------------------------------------------------------
1 | USE `aurora_main`;
2 | ALTER TABLE problems add `sampleinput` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci;
3 | ALTER TABLE problems add `sampleoutput` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci;
--------------------------------------------------------------------------------
/Judge/Dockerfile:
--------------------------------------------------------------------------------
1 | # DOCKER-VERSION 1.12.0
2 | FROM ubuntu:latest
3 | ARG DEBIAN_FRONTEND=noninteractive
4 | # INSTALL COMPILERS
5 | RUN apt-get update && apt-get install -y \
6 | openjdk-8-jdk \
7 | g++ \
8 | python \
9 | python3 \
10 | perl \
11 | locales \
12 | php \
13 | ruby \
14 | rhino \
15 | fpc \
16 | mono-complete mono-mcs \
17 | bf bc \
18 | psmisc \
19 | python3-pip
20 | RUN locale-gen "en_US.UTF-8"
21 | COPY requirements.txt /tmp/
22 | RUN pip3 install --requirement /tmp/requirements.txt
23 | RUN chmod 700 /tmp
24 | RUN useradd -m -u 8723 -s /bin/bash judge
25 | WORKDIR /home/judge
26 | RUN mkdir env io_cache
27 | RUN chmod 755 env
28 | RUN chmod 700 io_cache
29 | RUN chown judge env
30 | RUN chgrp judge env
31 | COPY judge.py /home/judge/
32 | EXPOSE 8723
33 | CMD ["python3", "judge.py", "-judge", "-cache"]
--------------------------------------------------------------------------------
/Judge/README.md:
--------------------------------------------------------------------------------
1 | Judge
2 | =====
3 |
4 | The docker image for this module is automatically published as [Github package](https://github.com/pushkar8723/aurora/packages/23019).
5 |
6 | Environment Variables
7 | ---------------------
8 |
9 | - AURORA_SQL_USERNAME: Aurora's MySQL username.
10 | - AURORA_SQL_PASSWORD: Aurora's MySQL password.
11 | - AURORA_SQL_DATABASE: Aurora's MySQL database name.
12 | - AURORA_SQL_HOSTNAME: MySQL hostname.
13 | - AURORA_SQL_HOSTPORT: MySQL port.
14 |
15 | Docker Secrets Variables
16 | ------------------------
17 |
18 | In production, the following environment variables can be used with docker secrets.
19 |
20 | - AURORA_SQL_USERNAME_FILE
21 | - AURORA_SQL_PASSWORD_FILE
22 | - AURORA_SQL_DATABASE_FILE
23 | - AURORA_SQL_HOSTNAME_FILE
24 | - AURORA_SQL_HOSTPORT_FILE
25 |
--------------------------------------------------------------------------------
/Judge/env/input.txt:
--------------------------------------------------------------------------------
1 | 1
2 | 2
3 | 3
4 | 4
5 | 5
6 | 6
7 | 7
8 | 8
9 | 9
10 | 10
11 |
--------------------------------------------------------------------------------
/Judge/env/output.txt:
--------------------------------------------------------------------------------
1 | 1
2 | 4
3 | 9
4 | 16
5 | 25
6 | 36
7 | 49
8 | 64
9 | 81
10 | 100
11 |
--------------------------------------------------------------------------------
/Judge/io_cache/Aurora Online Judge - Problem ID 1 - Input.txt:
--------------------------------------------------------------------------------
1 | 1
2 | 2
3 | 3
4 | 4
5 | 5
6 | 6
7 | 7
8 | 8
9 | 9
10 | 10
11 |
--------------------------------------------------------------------------------
/Judge/io_cache/Aurora Online Judge - Problem ID 1 - Output.txt:
--------------------------------------------------------------------------------
1 | 1
2 | 4
3 | 9
4 | 16
5 | 25
6 | 36
7 | 49
8 | 64
9 | 81
10 | 100
11 |
--------------------------------------------------------------------------------
/Judge/requirements.txt:
--------------------------------------------------------------------------------
1 | pymysql
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013 Pushkar Anand
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | ## Description, Motivation and Context
4 |
5 |
6 |
7 |
8 | ## Screenshots (if appropriate):
9 |
10 | ## How Has This Been Tested?
11 |
12 |
13 |
14 | ## Types of changes
15 |
16 | - [ ] Bug fix (non-breaking change which fixes an issue)
17 | - [ ] New feature (non-breaking change which adds functionality)
18 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
19 |
20 | ## Checklist:
21 |
22 |
23 | - [ ] My code follows the code style of this project.
24 | - [ ] My change requires a change to the documentation.
25 | - [ ] I have updated the documentation accordingly.
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | | Version | Supported |
6 | | ------- | ------------------ |
7 | | 2.1.0 | :white_check_mark: |
8 | | 2.0.1 | :x: |
9 |
10 | ## Reporting a Vulnerability
11 |
12 | To report a vulnerability raise an [issue](https://github.com/pushkar8723/aurora/issues/new/choose) or drop a mail to [pushkar@abstracted.in](mailto:pushkar@abstracted.in) with subject **`Security Issue on Aurora`**
13 |
--------------------------------------------------------------------------------
/Scripts/.gitignore:
--------------------------------------------------------------------------------
1 | config.py
2 | *.pyc
3 |
--------------------------------------------------------------------------------
/Scripts/config.py:
--------------------------------------------------------------------------------
1 | db_host="localhost"
2 | db_user="aurora"
3 | db_pass="aurora"
4 | db_name="aurora_main"
5 |
--------------------------------------------------------------------------------
/Web Interface/.gitignore:
--------------------------------------------------------------------------------
1 | errors.txt
2 | tags
3 | .idea
4 |
--------------------------------------------------------------------------------
/Web Interface/404.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | the CSS class "CodeMirror-activeline",
5 | // and gives its background
the class "CodeMirror-activeline-background".
6 |
7 | (function() {
8 | "use strict";
9 | var WRAP_CLASS = "CodeMirror-activeline";
10 | var BACK_CLASS = "CodeMirror-activeline-background";
11 |
12 | CodeMirror.defineOption("styleActiveLine", false, function(cm, val, old) {
13 | var prev = old && old != CodeMirror.Init;
14 | if (val && !prev) {
15 | updateActiveLine(cm);
16 | cm.on("cursorActivity", updateActiveLine);
17 | } else if (!val && prev) {
18 | cm.off("cursorActivity", updateActiveLine);
19 | clearActiveLine(cm);
20 | delete cm.state.activeLine;
21 | }
22 | });
23 |
24 | function clearActiveLine(cm) {
25 | if ("activeLine" in cm.state) {
26 | cm.removeLineClass(cm.state.activeLine, "wrap", WRAP_CLASS);
27 | cm.removeLineClass(cm.state.activeLine, "background", BACK_CLASS);
28 | }
29 | }
30 |
31 | function updateActiveLine(cm) {
32 | var line = cm.getLineHandle(cm.getCursor().line);
33 | if (cm.state.activeLine == line) return;
34 | clearActiveLine(cm);
35 | cm.addLineClass(line, "wrap", WRAP_CLASS);
36 | cm.addLineClass(line, "background", BACK_CLASS);
37 | cm.state.activeLine = line;
38 | }
39 | })();
40 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/bin/lint:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var lint = require("../test/lint/lint");
4 |
5 | process.chdir(__dirname.slice(0, __dirname.lastIndexOf("/")));
6 |
7 | lint.checkDir("mode");
8 | lint.checkDir("lib");
9 | lint.checkDir("addon");
10 |
11 | process.exit(lint.success() ? 0 : 1);
12 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/bin/source-highlight:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | // Simple command-line code highlighting tool. Reads code from stdin,
4 | // spits html to stdout. For example:
5 | //
6 | // echo 'function foo(a) { return a; }' | bin/source-highlight -s javascript
7 | // bin/source-highlight -s
8 |
9 | var fs = require("fs");
10 |
11 | CodeMirror = require("../addon/runmode/runmode.node.js");
12 | require("../mode/meta.js");
13 |
14 | var sPos = process.argv.indexOf("-s");
15 | if (sPos == -1 || sPos == process.argv.length - 1) {
16 | console.error("Usage: source-highlight -s language");
17 | process.exit(1);
18 | }
19 | var lang = process.argv[sPos + 1].toLowerCase(), modeName = lang;
20 | CodeMirror.modeInfo.forEach(function(info) {
21 | if (info.mime == lang) {
22 | modeName = info.mode;
23 | } else if (info.name.toLowerCase() == lang) {
24 | modeName = info.mode;
25 | lang = info.mime;
26 | }
27 | });
28 |
29 | function ensureMode(name) {
30 | if (CodeMirror.modes[name] || name == "null") return;
31 | try {
32 | require("../mode/" + name + "/" + name + ".js");
33 | } catch(e) {
34 | console.error("Could not load mode " + name + ".");
35 | process.exit(1);
36 | }
37 | var obj = CodeMirror.modes[name];
38 | if (obj.dependencies) obj.dependencies.forEach(ensureMode);
39 | }
40 | ensureMode(modeName);
41 |
42 | function esc(str) {
43 | return str.replace(/[<&]/, function(ch) { return ch == "&" ? "&" : "<"; });
44 | }
45 |
46 | var code = fs.readFileSync("/dev/stdin", "utf8");
47 | var curStyle = null, accum = "";
48 | function flush() {
49 | if (curStyle) process.stdout.write("
" + esc(accum) + " ");
50 | else process.stdout.write(esc(accum));
51 | }
52 |
53 | CodeMirror.runMode(code, lang, function(text, style) {
54 | if (style != curStyle) {
55 | flush();
56 | curStyle = style; accum = text;
57 | } else {
58 | accum += text;
59 | }
60 | });
61 | flush();
62 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/apl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: APL mode
6 |
7 |
8 |
9 |
10 |
11 |
14 |
15 |
16 |
CodeMirror: APL mode
17 |
18 |
44 |
45 |
52 |
53 |
Simple mode that tries to handle APL as well as it can.
54 |
It attempts to label functions/operators based upon
55 | monadic/dyadic usage (but this is far from fully fleshed out).
56 | This means there are meaningful classnames so hover states can
57 | have popups etc.
58 |
59 |
MIME types defined: text/apl
(APL code)
60 |
61 |
62 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/coffeescript/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2011 Jeff Pickhardt
4 | Modified from the Python CodeMirror mode, Copyright (c) 2010 Timothy Farrell
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/css/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: CSS mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
CodeMirror: CSS mode
14 |
15 | /* Some example CSS */
16 |
17 | @import url("something.css");
18 |
19 | body {
20 | margin: 0;
21 | padding: 3em 6em;
22 | font-family: tahoma, arial, sans-serif;
23 | color: #000;
24 | }
25 |
26 | #navigation a {
27 | font-weight: bold;
28 | text-decoration: none !important;
29 | }
30 |
31 | h1 {
32 | font-size: 2.5em;
33 | }
34 |
35 | h2 {
36 | font-size: 1.7em;
37 | }
38 |
39 | h1:before, h2:before {
40 | content: "::";
41 | }
42 |
43 | code {
44 | font-family: courier, monospace;
45 | font-size: 80%;
46 | color: #418A8A;
47 | }
48 |
49 |
52 |
53 |
MIME types defined: text/css
.
54 |
55 |
Parsing/Highlighting Tests: normal , verbose .
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/diff/diff.js:
--------------------------------------------------------------------------------
1 | CodeMirror.defineMode("diff", function() {
2 |
3 | var TOKEN_NAMES = {
4 | '+': 'positive',
5 | '-': 'negative',
6 | '@': 'meta'
7 | };
8 |
9 | return {
10 | token: function(stream) {
11 | var tw_pos = stream.string.search(/[\t ]+?$/);
12 |
13 | if (!stream.sol() || tw_pos === 0) {
14 | stream.skipToEnd();
15 | return ("error " + (
16 | TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');
17 | }
18 |
19 | var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();
20 |
21 | if (tw_pos === -1) {
22 | stream.skipToEnd();
23 | } else {
24 | stream.pos = tw_pos;
25 | }
26 |
27 | return token_name;
28 | }
29 | };
30 | });
31 |
32 | CodeMirror.defineMIME("text/x-diff", "diff");
33 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/ecl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
CodeMirror: ECL mode
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
CodeMirror: ECL mode
13 |
14 | /*
15 | sample useless code to demonstrate ecl syntax highlighting
16 | this is a multiline comment!
17 | */
18 |
19 | // this is a singleline comment!
20 |
21 | import ut;
22 | r :=
23 | record
24 | string22 s1 := '123';
25 | integer4 i1 := 123;
26 | end;
27 | #option('tmp', true);
28 | d := dataset('tmp::qb', r, thor);
29 | output(d);
30 |
31 |
34 |
35 |
Based on CodeMirror's clike mode. For more information see HPCC Systems web site.
36 |
MIME types defined: text/x-ecl
.
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/erlang/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: Erlang mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
CodeMirror: Erlang mode
16 |
17 |
18 | %% -*- mode: erlang; erlang-indent-level: 2 -*-
19 | %%% Created : 7 May 2012 by mats cronqvist
20 |
21 | %% @doc
22 | %% Demonstrates how to print a record.
23 | %% @end
24 |
25 | -module('ex').
26 | -author('mats cronqvist').
27 | -export([demo/0,
28 | rec_info/1]).
29 |
30 | -record(demo,{a="One",b="Two",c="Three",d="Four"}).
31 |
32 | rec_info(demo) -> record_info(fields,demo).
33 |
34 | demo() -> expand_recs(?MODULE,#demo{a="A",b="BB"}).
35 |
36 | expand_recs(M,List) when is_list(List) ->
37 | [expand_recs(M,L)||L<-List];
38 | expand_recs(M,Tup) when is_tuple(Tup) ->
39 | case tuple_size(Tup) of
40 | L when L < 1 -> Tup;
41 | L ->
42 | try Fields = M:rec_info(element(1,Tup)),
43 | L = length(Fields)+1,
44 | lists:zip(Fields,expand_recs(M,tl(tuple_to_list(Tup))))
45 | catch _:_ ->
46 | list_to_tuple(expand_recs(M,tuple_to_list(Tup)))
47 | end
48 | end;
49 | expand_recs(_,Term) ->
50 | Term.
51 |
52 |
53 |
61 |
62 |
MIME types defined: text/x-erlang
.
63 |
64 |
65 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/gas/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: Gas mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
CodeMirror: Gas mode
14 |
15 |
16 |
17 | .syntax unified
18 | .global main
19 |
20 | /*
21 | * A
22 | * multi-line
23 | * comment.
24 | */
25 |
26 | @ A single line comment.
27 |
28 | main:
29 | push {sp, lr}
30 | ldr r0, =message
31 | bl puts
32 | mov r0, #0
33 | pop {sp, pc}
34 |
35 | message:
36 | .asciz "Hello world! "
37 |
38 |
39 |
40 |
46 |
47 |
Handles AT&T assembler syntax (more specifically this handles
48 | the GNU Assembler (gas) syntax.)
49 | It takes a single optional configuration parameter:
50 | architecture
, which can be one of "ARM"
,
51 | "ARMv6"
or "x86"
.
52 | Including the parameter adds syntax for the registers and special
53 | directives for the supplied architecture.
54 |
55 |
MIME types defined: text/x-gas
56 |
57 |
58 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/go/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: Go mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
CodeMirror: Go mode
16 |
17 |
18 | // Prime Sieve in Go.
19 | // Taken from the Go specification.
20 | // Copyright © The Go Authors.
21 |
22 | package main
23 |
24 | import "fmt"
25 |
26 | // Send the sequence 2, 3, 4, ... to channel 'ch'.
27 | func generate(ch chan<- int) {
28 | for i := 2; ; i++ {
29 | ch <- i // Send 'i' to channel 'ch'
30 | }
31 | }
32 |
33 | // Copy the values from channel 'src' to channel 'dst',
34 | // removing those divisible by 'prime'.
35 | func filter(src <-chan int, dst chan<- int, prime int) {
36 | for i := range src { // Loop over values received from 'src'.
37 | if i%prime != 0 {
38 | dst <- i // Send 'i' to channel 'dst'.
39 | }
40 | }
41 | }
42 |
43 | // The prime sieve: Daisy-chain filter processes together.
44 | func sieve() {
45 | ch := make(chan int) // Create a new channel.
46 | go generate(ch) // Start generate() as a subprocess.
47 | for {
48 | prime := <-ch
49 | fmt.Print(prime, "\n")
50 | ch1 := make(chan int)
51 | go filter(ch, ch1, prime)
52 | ch = ch1
53 | }
54 | }
55 |
56 | func main() {
57 | sieve()
58 | }
59 |
60 |
61 |
71 |
72 |
MIME type: text/x-go
73 |
74 |
75 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/groovy/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: Groovy mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
CodeMirror: Groovy mode
15 |
16 |
17 | //Pattern for groovy script
18 | def p = ~/.*\.groovy/
19 | new File( 'd:\\scripts' ).eachFileMatch(p) {f ->
20 | // imports list
21 | def imports = []
22 | f.eachLine {
23 | // condition to detect an import instruction
24 | ln -> if ( ln =~ '^import .*' ) {
25 | imports << "${ln - 'import '}"
26 | }
27 | }
28 | // print thmen
29 | if ( ! imports.empty ) {
30 | println f
31 | imports.each{ println " $it" }
32 | }
33 | }
34 |
35 | /* Coin changer demo code from http://groovy.codehaus.org */
36 |
37 | enum UsCoin {
38 | quarter(25), dime(10), nickel(5), penny(1)
39 | UsCoin(v) { value = v }
40 | final value
41 | }
42 |
43 | enum OzzieCoin {
44 | fifty(50), twenty(20), ten(10), five(5)
45 | OzzieCoin(v) { value = v }
46 | final value
47 | }
48 |
49 | def plural(word, count) {
50 | if (count == 1) return word
51 | word[-1] == 'y' ? word[0..-2] + "ies" : word + "s"
52 | }
53 |
54 | def change(currency, amount) {
55 | currency.values().inject([]){ list, coin ->
56 | int count = amount / coin.value
57 | amount = amount % coin.value
58 | list += "$count ${plural(coin.toString(), count)}"
59 | }
60 | }
61 |
62 |
63 |
70 |
71 |
MIME types defined: text/x-groovy
72 |
73 |
74 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/haml/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: HAML mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
CodeMirror: HAML mode
18 |
19 | !!!
20 | #content
21 | .left.column(title="title"){:href => "/hello", :test => "#{hello}_#{world}"}
22 |
23 | %h2 Welcome to our site!
24 | %p= puts "HAML MODE"
25 | .right.column
26 | = render :partial => "sidebar"
27 |
28 | .container
29 | .row
30 | .span8
31 | %h1.title= @page_title
32 | %p.title= @page_title
33 | %p
34 | /
35 | The same as HTML comment
36 | Hello multiline comment
37 |
38 | -# haml comment
39 | This wont be displayed
40 | nor will this
41 | Date/Time:
42 | - now = DateTime.now
43 | %strong= now
44 | - if now > DateTime.parse("December 31, 2006")
45 | = "Happy new " + "year!"
46 |
47 | %title
48 | = @title
49 | \= @title
50 | Title
51 |
52 | Title
53 |
54 |
55 |
61 |
62 |
MIME types defined: text/x-haml
.
63 |
64 |
Parsing/Highlighting Tests: normal , verbose .
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/haskell/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: Haskell mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
CodeMirror: Haskell mode
16 |
17 |
18 | module UniquePerms (
19 | uniquePerms
20 | )
21 | where
22 |
23 | -- | Find all unique permutations of a list where there might be duplicates.
24 | uniquePerms :: (Eq a) => [a] -> [[a]]
25 | uniquePerms = permBag . makeBag
26 |
27 | -- | An unordered collection where duplicate values are allowed,
28 | -- but represented with a single value and a count.
29 | type Bag a = [(a, Int)]
30 |
31 | makeBag :: (Eq a) => [a] -> Bag a
32 | makeBag [] = []
33 | makeBag (a:as) = mix a $ makeBag as
34 | where
35 | mix a [] = [(a,1)]
36 | mix a (bn@(b,n):bs) | a == b = (b,n+1):bs
37 | | otherwise = bn : mix a bs
38 |
39 | permBag :: Bag a -> [[a]]
40 | permBag [] = [[]]
41 | permBag bs = concatMap (\(f,cs) -> map (f:) $ permBag cs) . oneOfEach $ bs
42 | where
43 | oneOfEach [] = []
44 | oneOfEach (an@(a,n):bs) =
45 | let bs' = if n == 1 then bs else (a,n-1):bs
46 | in (a,bs') : mapSnd (an:) (oneOfEach bs)
47 |
48 | apSnd f (a,b) = (a, f b)
49 | mapSnd = map . apSnd
50 |
51 |
52 |
59 |
60 |
MIME types defined: text/x-haskell
.
61 |
62 |
63 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/haxe/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: Haxe mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
CodeMirror: Haxe mode
14 |
15 |
16 | import one.two.Three;
17 |
18 | @attr("test")
19 | class Foo<T> extends Three
20 | {
21 | public function new()
22 | {
23 | noFoo = 12;
24 | }
25 |
26 | public static inline function doFoo(obj:{k:Int, l:Float}):Int
27 | {
28 | for(i in 0...10)
29 | {
30 | obj.k++;
31 | trace(i);
32 | var var1 = new Array();
33 | if(var1.length > 1)
34 | throw "Error";
35 | }
36 | // The following line should not be colored, the variable is scoped out
37 | var1;
38 | /* Multi line
39 | * Comment test
40 | */
41 | return obj.k;
42 | }
43 | private function bar():Void
44 | {
45 | #if flash
46 | var t1:String = "1.21";
47 | #end
48 | try {
49 | doFoo({k:3, l:1.2});
50 | }
51 | catch (e : String) {
52 | trace(e);
53 | }
54 | var t2:Float = cast(3.2);
55 | var t3:haxe.Timer = new haxe.Timer();
56 | var t4 = {k:Std.int(t2), l:Std.parseFloat(t1)};
57 | var t5 = ~/123+.*$/i;
58 | doFoo(t4);
59 | untyped t1 = 4;
60 | bob = new Foo<Int>
61 | }
62 | public var okFoo(default, never):Float;
63 | var noFoo(getFoo, null):Int;
64 | function getFoo():Int {
65 | return noFoo;
66 | }
67 |
68 | public var three:Int;
69 | }
70 | enum Color
71 | {
72 | red;
73 | green;
74 | blue;
75 | grey( v : Int );
76 | rgb (r:Int,g:Int,b:Int);
77 | }
78 |
79 |
80 |
87 |
88 |
MIME types defined: text/x-haxe
.
89 |
90 |
91 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/htmlembedded/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: Html Embedded Scripts mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
CodeMirror: Html Embedded Scripts mode
18 |
19 |
20 | <%
21 | function hello(who) {
22 | return "Hello " + who;
23 | }
24 | %>
25 | This is an example of EJS (embedded javascript)
26 | The program says <%= hello("world") %>.
27 |
30 |
31 |
32 |
42 |
43 |
Mode for html embedded scripts like JSP and ASP.NET. Depends on HtmlMixed which in turn depends on
44 | JavaScript, CSS and XML. Other dependancies include those of the scriping language chosen.
45 |
46 |
MIME types defined: application/x-aspx
(ASP.NET),
47 | application/x-ejs
(Embedded Javascript), application/x-jsp
(JavaServer Pages)
48 |
49 |
50 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/http/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: HTTP mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
CodeMirror: HTTP mode
14 |
15 |
16 | POST /somewhere HTTP/1.1
17 | Host: example.com
18 | If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
19 | Content-Type: application/x-www-form-urlencoded;
20 | charset=utf-8
21 | User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
22 |
23 | This is the request body!
24 |
25 |
26 |
29 |
30 |
MIME types defined: message/http
.
31 |
32 |
33 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/javascript/typescript.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: TypeScript mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
CodeMirror: TypeScript mode
14 |
15 |
16 | class Greeter {
17 | greeting: string;
18 | constructor (message: string) {
19 | this.greeting = message;
20 | }
21 | greet() {
22 | return "Hello, " + this.greeting;
23 | }
24 | }
25 |
26 | var greeter = new Greeter("world");
27 |
28 | var button = document.createElement('button')
29 | button.innerText = "Say Hello"
30 | button.onclick = function() {
31 | alert(greeter.greet())
32 | }
33 |
34 | document.body.appendChild(button)
35 |
36 |
37 |
38 |
45 |
46 |
This is a specialization of the JavaScript mode .
47 |
48 |
49 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/jinja2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: Jinja2 mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
CodeMirror: Jinja2 mode
14 |
15 | <html style="color: green">
16 | <!-- this is a comment -->
17 | <head>
18 | <title>Jinja2 Example</title>
19 | </head>
20 | <body>
21 | <ul>
22 | {# this is a comment #}
23 | {%- for item in li -%}
24 | <li>
25 | {{ item.label }}
26 | </li>
27 | {% endfor -%}
28 | </ul>
29 | </body>
30 | </html>
31 |
32 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/jinja2/jinja2.js:
--------------------------------------------------------------------------------
1 | CodeMirror.defineMode("jinja2", function() {
2 | var keywords = ["block", "endblock", "for", "endfor", "in", "true", "false",
3 | "loop", "none", "self", "super", "if", "as", "not", "and",
4 | "else", "import", "with", "without", "context"];
5 | keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b");
6 |
7 | function tokenBase (stream, state) {
8 | var ch = stream.next();
9 | if (ch == "{") {
10 | if (ch = stream.eat(/\{|%|#/)) {
11 | stream.eat("-");
12 | state.tokenize = inTag(ch);
13 | return "tag";
14 | }
15 | }
16 | }
17 | function inTag (close) {
18 | if (close == "{") {
19 | close = "}";
20 | }
21 | return function (stream, state) {
22 | var ch = stream.next();
23 | if ((ch == close || (ch == "-" && stream.eat(close)))
24 | && stream.eat("}")) {
25 | state.tokenize = tokenBase;
26 | return "tag";
27 | }
28 | if (stream.match(keywords)) {
29 | return "keyword";
30 | }
31 | return close == "#" ? "comment" : "string";
32 | };
33 | }
34 | return {
35 | startState: function () {
36 | return {tokenize: tokenBase};
37 | },
38 | token: function (stream, state) {
39 | return state.tokenize(stream, state);
40 | }
41 | };
42 | });
43 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/livescript/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2013 Kenneth Bentley
4 | Modified from the CoffeeScript CodeMirror mode, Copyright (c) 2011 Jeff Pickhardt
5 | Modified from the Python CodeMirror mode, Copyright (c) 2010 Timothy Farrell
6 |
7 | Permission is hereby granted, free of charge, to any person obtaining a copy
8 | of this software and associated documentation files (the "Software"), to deal
9 | in the Software without restriction, including without limitation the rights
10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | copies of the Software, and to permit persons to whom the Software is
12 | furnished to do so, subject to the following conditions:
13 |
14 | The above copyright notice and this permission notice shall be included in
15 | all copies or substantial portions of the Software.
16 |
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | THE SOFTWARE.
24 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/lua/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: Lua mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
CodeMirror: Lua mode
16 |
17 | --[[
18 | example useless code to show lua syntax highlighting
19 | this is multiline comment
20 | ]]
21 |
22 | function blahblahblah(x)
23 |
24 | local table = {
25 | "asd" = 123,
26 | "x" = 0.34,
27 | }
28 | if x ~= 3 then
29 | print( x )
30 | elseif x == "string"
31 | my_custom_function( 0x34 )
32 | else
33 | unknown_function( "some string" )
34 | end
35 |
36 | --single line comment
37 |
38 | end
39 |
40 | function blablabla3()
41 |
42 | for k,v in ipairs( table ) do
43 | --abcde..
44 | y=[=[
45 | x=[[
46 | x is a multi line string
47 | ]]
48 | but its definition is iside a highest level string!
49 | ]=]
50 | print(" \"\" ")
51 |
52 | s = math.sin( x )
53 | end
54 |
55 | end
56 |
57 |
64 |
65 |
Loosely based on Franciszek
66 | Wawrzak's CodeMirror
67 | 1 mode . One configuration parameter is
68 | supported, specials
, to which you can provide an
69 | array of strings to have those identifiers highlighted with
70 | the lua-special
style.
71 |
MIME types defined: text/x-lua
.
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/ntriples/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
CodeMirror: NTriples mode
6 |
7 |
8 |
9 |
10 |
15 |
16 |
17 |
CodeMirror: NTriples mode
18 |
19 |
20 | .
21 | "literal 1" .
22 | _:bnode3 .
23 | _:bnode4 "literal 2"@lang .
24 | _:bnode5 "literal 3"^^ .
25 |
26 |
27 |
28 |
31 |
MIME types defined: text/n-triples
.
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/pascal/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011 souceLair
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/pascal/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: Pascal mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: Pascal mode
14 |
15 |
16 | (* Example Pascal code *)
17 |
18 | while a <> b do writeln('Waiting');
19 |
20 | if a > b then
21 | writeln('Condition met')
22 | else
23 | writeln('Condition not met');
24 |
25 | for i := 1 to 10 do
26 | writeln('Iteration: ', i:1);
27 |
28 | repeat
29 | a := a + 1
30 | until a = 10;
31 |
32 | case i of
33 | 0: write('zero');
34 | 1: write('one');
35 | 2: write('two')
36 | end;
37 |
38 |
39 |
45 |
46 | MIME types defined: text/x-pascal
.
47 |
48 |
49 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/perl/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2011 by Sabaca under the MIT license.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/perl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: Perl mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: Perl mode
14 |
15 |
16 | #!/usr/bin/perl
17 |
18 | use Something qw(func1 func2);
19 |
20 | # strings
21 | my $s1 = qq'single line';
22 | our $s2 = q(multi-
23 | line);
24 |
25 | =item Something
26 | Example.
27 | =cut
28 |
29 | my $html=<<'HTML'
30 |
31 | hi!
32 |
33 | HTML
34 |
35 | print "first,".join(',', 'second', qq~third~);
36 |
37 | if($s1 =~ m[(?{$1}=$$.' predefined variables';
39 | $s2 =~ s/\-line//ox;
40 | $s1 =~ s[
41 | line ]
42 | [
43 | block
44 | ]ox;
45 | }
46 |
47 | 1; # numbers and comments
48 |
49 | __END__
50 | something...
51 |
52 |
53 |
54 |
59 |
60 | MIME types defined: text/x-perl
.
61 |
62 |
63 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/php/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: PHP mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | CodeMirror: PHP mode
20 |
21 |
22 |
27 | The program says = hello("World") ?>.
28 |
31 |
32 |
33 |
44 |
45 | Simple HTML/PHP mode based on
46 | the C-like mode. Depends on XML,
47 | JavaScript, CSS, HTMLMixed, and C-like modes.
48 |
49 | MIME types defined: application/x-httpd-php
(HTML with PHP code), text/x-php
(plain, non-wrapped PHP code).
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/pig/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: Pig Latin mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: Pig Latin mode
14 |
15 |
16 | -- Apache Pig (Pig Latin Language) Demo
17 | /*
18 | This is a multiline comment.
19 | */
20 | a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray);
21 | b = GROUP a BY (x,y,3+4);
22 | c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z;
23 | STORE c INTO "\path\to\output";
24 |
25 | --
26 |
27 |
28 |
35 |
36 |
37 | Simple mode that handles Pig Latin language.
38 |
39 |
40 | MIME type defined: text/x-pig
41 | (PIG code)
42 |
43 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/properties/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: Properties files mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: Properties files mode
14 |
15 | # This is a properties file
16 | a.key = A value
17 | another.key = http://example.com
18 | ! Exclamation mark as comment
19 | but.not=Within ! A value # indeed
20 | # Spaces at the beginning of a line
21 | spaces.before.key=value
22 | backslash=Used for multi\
23 | line entries,\
24 | that's convenient.
25 | # Unicode sequences
26 | unicode.key=This is \u0020 Unicode
27 | no.multiline=here
28 | # Colons
29 | colons : can be used too
30 | # Spaces
31 | spaces\ in\ keys=Not very common...
32 |
33 |
36 |
37 | MIME types defined: text/x-properties
,
38 | text/x-ini
.
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/properties/properties.js:
--------------------------------------------------------------------------------
1 | CodeMirror.defineMode("properties", function() {
2 | return {
3 | token: function(stream, state) {
4 | var sol = stream.sol() || state.afterSection;
5 | var eol = stream.eol();
6 |
7 | state.afterSection = false;
8 |
9 | if (sol) {
10 | if (state.nextMultiline) {
11 | state.inMultiline = true;
12 | state.nextMultiline = false;
13 | } else {
14 | state.position = "def";
15 | }
16 | }
17 |
18 | if (eol && ! state.nextMultiline) {
19 | state.inMultiline = false;
20 | state.position = "def";
21 | }
22 |
23 | if (sol) {
24 | while(stream.eatSpace());
25 | }
26 |
27 | var ch = stream.next();
28 |
29 | if (sol && (ch === "#" || ch === "!" || ch === ";")) {
30 | state.position = "comment";
31 | stream.skipToEnd();
32 | return "comment";
33 | } else if (sol && ch === "[") {
34 | state.afterSection = true;
35 | stream.skipTo("]"); stream.eat("]");
36 | return "header";
37 | } else if (ch === "=" || ch === ":") {
38 | state.position = "quote";
39 | return null;
40 | } else if (ch === "\\" && state.position === "quote") {
41 | if (stream.next() !== "u") { // u = Unicode sequence \u1234
42 | // Multiline value
43 | state.nextMultiline = true;
44 | }
45 | }
46 |
47 | return state.position;
48 | },
49 |
50 | startState: function() {
51 | return {
52 | position : "def", // Current position, "def", "quote" or "comment"
53 | nextMultiline : false, // Is the next line multiline value
54 | inMultiline : false, // Is the current line a multiline value
55 | afterSection : false // Did we just open a section
56 | };
57 | }
58 |
59 | };
60 | });
61 |
62 | CodeMirror.defineMIME("text/x-properties", "properties");
63 | CodeMirror.defineMIME("text/x-ini", "properties");
64 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/python/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2010 Timothy Farrell
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/r/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011, Ubalo, Inc.
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions are met:
6 | * Redistributions of source code must retain the above copyright
7 | notice, this list of conditions and the following disclaimer.
8 | * Redistributions in binary form must reproduce the above copyright
9 | notice, this list of conditions and the following disclaimer in the
10 | documentation and/or other materials provided with the distribution.
11 | * Neither the name of the Ubalo, Inc nor the names of its
12 | contributors may be used to endorse or promote products derived
13 | from this software without specific prior written permission.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 | DISCLAIMED. IN NO EVENT SHALL UBALO, INC BE LIABLE FOR ANY
19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/rpm/changes/changes.js:
--------------------------------------------------------------------------------
1 | CodeMirror.defineMode("changes", function() {
2 | var headerSeperator = /^-+$/;
3 | var headerLine = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /;
4 | var simpleEmail = /^[\w+.-]+@[\w.-]+/;
5 |
6 | return {
7 | token: function(stream) {
8 | if (stream.sol()) {
9 | if (stream.match(headerSeperator)) { return 'tag'; }
10 | if (stream.match(headerLine)) { return 'tag'; }
11 | }
12 | if (stream.match(simpleEmail)) { return 'string'; }
13 | stream.next();
14 | return null;
15 | }
16 | };
17 | });
18 |
19 | CodeMirror.defineMIME("text/x-rpm-changes", "changes");
20 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/rpm/changes/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: RPM changes mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: RPM changes mode
14 |
15 |
16 | -------------------------------------------------------------------
17 | Tue Oct 18 13:58:40 UTC 2011 - misterx@example.com
18 |
19 | - Update to r60.3
20 | - Fixes bug in the reflect package
21 | * disallow Interface method on Value obtained via unexported name
22 |
23 | -------------------------------------------------------------------
24 | Thu Oct 6 08:14:24 UTC 2011 - misterx@example.com
25 |
26 | - Update to r60.2
27 | - Fixes memory leak in certain map types
28 |
29 | -------------------------------------------------------------------
30 | Wed Oct 5 14:34:10 UTC 2011 - misterx@example.com
31 |
32 | - Tweaks for gdb debugging
33 | - go.spec changes:
34 | - move %go_arch definition to %prep section
35 | - pass correct location of go specific gdb pretty printer and
36 | functions to cpp as HOST_EXTRA_CFLAGS macro
37 | - install go gdb functions & printer
38 | - gdb-printer.patch
39 | - patch linker (src/cmd/ld/dwarf.c) to emit correct location of go
40 | gdb functions and pretty printer
41 |
42 |
50 |
51 | MIME types defined: text/x-rpm-changes
.
52 |
53 |
54 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/rpm/spec/spec.css:
--------------------------------------------------------------------------------
1 | .cm-s-default span.cm-preamble {color: #b26818; font-weight: bold;}
2 | .cm-s-default span.cm-macro {color: #b218b2;}
3 | .cm-s-default span.cm-section {color: green; font-weight: bold;}
4 | .cm-s-default span.cm-script {color: red;}
5 | .cm-s-default span.cm-issue {color: yellow;}
6 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/rst/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2013 Hasan Karahan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/ruby/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011, Ubalo, Inc.
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions are met:
6 | * Redistributions of source code must retain the above copyright
7 | notice, this list of conditions and the following disclaimer.
8 | * Redistributions in binary form must reproduce the above copyright
9 | notice, this list of conditions and the following disclaimer in the
10 | documentation and/or other materials provided with the distribution.
11 | * Neither the name of the Ubalo, Inc. nor the names of its
12 | contributors may be used to endorse or promote products derived
13 | from this software without specific prior written permission.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 | DISCLAIMED. IN NO EVENT SHALL UBALO, INC BE LIABLE FOR ANY
19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/rust/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: Rust mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: Rust mode
14 |
15 |
16 | // Demo code.
17 |
18 | type foo = int;
19 | enum bar {
20 | some(int, foo),
21 | none
22 | }
23 |
24 | fn check_crate(x: int) {
25 | let v = 10;
26 | alt foo {
27 | 1 to 3 {
28 | print_foo();
29 | if x {
30 | blah() + 10;
31 | }
32 | }
33 | (x, y) { "bye" }
34 | _ { "hi" }
35 | }
36 | }
37 |
38 |
39 |
45 |
46 | MIME types defined: text/x-rustsrc
.
47 |
48 |
49 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/sass/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: Sass mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | CodeMirror: Sass mode
15 | // Variable Definitions
16 |
17 | $page-width: 800px
18 | $sidebar-width: 200px
19 | $primary-color: #eeeeee
20 |
21 | // Global Attributes
22 |
23 | body
24 | font:
25 | family: sans-serif
26 | size: 30em
27 | weight: bold
28 |
29 | // Scoped Styles
30 |
31 | #contents
32 | width: $page-width
33 | #sidebar
34 | float: right
35 | width: $sidebar-width
36 | #main
37 | width: $page-width - $sidebar-width
38 | background: $primary-color
39 | h2
40 | color: blue
41 |
42 | #footer
43 | height: 200px
44 |
45 |
51 |
52 | MIME types defined: text/x-sass
.
53 |
54 |
55 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/shell/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Shell mode
4 |
5 |
6 |
7 |
8 |
11 |
12 |
13 |
14 |
15 |
16 | CodeMirror: Shell mode
17 |
18 |
19 | #!/bin/bash
20 |
21 | # clone the repository
22 | git clone http://github.com/garden/tree
23 |
24 | # generate HTTPS credentials
25 | cd tree
26 | openssl genrsa -aes256 -out https.key 1024
27 | openssl req -new -nodes -key https.key -out https.csr
28 | openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt
29 | cp https.key{,.orig}
30 | openssl rsa -in https.key.orig -out https.key
31 |
32 | # start the server in HTTPS mode
33 | cd web
34 | sudo node ../server.js 443 'yes' >> ../node.log &
35 |
36 | # here is how to stop the server
37 | for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do
38 | sudo kill -9 $pid 2> /dev/null
39 | done
40 |
41 | exit 0
42 |
43 |
50 |
51 | MIME types defined: text/x-sh
.
52 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/sieve/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2012 Thomas Schmid
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/sieve/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: Sieve (RFC5228) mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: Sieve (RFC5228) mode
14 |
15 | #
16 | # Example Sieve Filter
17 | # Declare any optional features or extension used by the script
18 | #
19 |
20 | require ["fileinto", "reject"];
21 |
22 | #
23 | # Reject any large messages (note that the four leading dots get
24 | # "stuffed" to three)
25 | #
26 | if size :over 1M
27 | {
28 | reject text:
29 | Please do not send me large attachments.
30 | Put your file on a server and send me the URL.
31 | Thank you.
32 | .... Fred
33 | .
34 | ;
35 | stop;
36 | }
37 |
38 | #
39 | # Handle messages from known mailing lists
40 | # Move messages from IETF filter discussion list to filter folder
41 | #
42 | if header :is "Sender" "owner-ietf-mta-filters@imc.org"
43 | {
44 | fileinto "filter"; # move to "filter" folder
45 | }
46 | #
47 | # Keep all messages to or from people in my company
48 | #
49 | elsif address :domain :is ["From", "To"] "example.com"
50 | {
51 | keep; # keep in "In" folder
52 | }
53 |
54 | #
55 | # Try and catch unsolicited email. If a message is not to me,
56 | # or it contains a subject known to be spam, file it away.
57 | #
58 | elsif anyof (not address :all :contains
59 | ["To", "Cc", "Bcc"] "me@example.com",
60 | header :matches "subject"
61 | ["*make*money*fast*", "*university*dipl*mas*"])
62 | {
63 | # If message header does not contain my address,
64 | # it's from a list.
65 | fileinto "spam"; # move to "spam" folder
66 | }
67 | else
68 | {
69 | # Move all other (non-company) mail to "personal"
70 | # folder.
71 | fileinto "personal";
72 | }
73 |
74 |
77 |
78 | MIME types defined: application/sieve
.
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/smalltalk/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: Smalltalk mode
6 |
7 |
8 |
9 |
10 |
11 |
16 |
17 |
18 | CodeMirror: Smalltalk mode
19 |
20 |
21 | "
22 | This is a test of the Smalltalk code
23 | "
24 | Seaside.WAComponent subclass: #MyCounter [
25 | | count |
26 | MyCounter class >> canBeRoot [ ^true ]
27 |
28 | initialize [
29 | super initialize.
30 | count := 0.
31 | ]
32 | states [ ^{ self } ]
33 | renderContentOn: html [
34 | html heading: count.
35 | html anchor callback: [ count := count + 1 ]; with: '++'.
36 | html space.
37 | html anchor callback: [ count := count - 1 ]; with: '--'.
38 | ]
39 | ]
40 |
41 | MyCounter registerAsApplication: 'mycounter'
42 |
43 |
44 |
52 |
53 | Simple Smalltalk mode.
54 |
55 | MIME types defined: text/x-stsrc
.
56 |
57 |
58 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/sparql/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: SPARQL mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | CodeMirror: SPARQL mode
15 |
16 | PREFIX a: <http://www.w3.org/2000/10/annotation-ns#>
17 | PREFIX dc: <http://purl.org/dc/elements/1.1/>
18 | PREFIX foaf: <http://xmlns.com/foaf/0.1/>
19 |
20 | # Comment!
21 |
22 | SELECT ?given ?family
23 | WHERE {
24 | ?annot a:annotates <http://www.w3.org/TR/rdf-sparql-query/> .
25 | ?annot dc:creator ?c .
26 | OPTIONAL {?c foaf:given ?given ;
27 | foaf:family ?family } .
28 | FILTER isBlank(?c)
29 | }
30 |
31 |
38 |
39 | MIME types defined: application/x-sparql-query
.
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/tiddlywiki/tiddlywiki.css:
--------------------------------------------------------------------------------
1 | span.cm-underlined {
2 | text-decoration: underline;
3 | }
4 | span.cm-strikethrough {
5 | text-decoration: line-through;
6 | }
7 | span.cm-brace {
8 | color: #170;
9 | font-weight: bold;
10 | }
11 | span.cm-table {
12 | color: blue;
13 | font-weight: bold;
14 | }
15 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/tiki/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CodeMirror: Tiki wiki mode
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: Tiki wiki mode
14 |
15 |
16 | Headings
17 | !Header 1
18 | !!Header 2
19 | !!!Header 3
20 | !!!!Header 4
21 | !!!!!Header 5
22 | !!!!!!Header 6
23 |
24 | Styling
25 | -=titlebar=-
26 | ^^ Box on multi
27 | lines
28 | of content^^
29 | __bold__
30 | ''italic''
31 | ===underline===
32 | ::center::
33 | --Line Through--
34 |
35 | Operators
36 | ~np~No parse~/np~
37 |
38 | Link
39 | [link|desc|nocache]
40 |
41 | Wiki
42 | ((Wiki))
43 | ((Wiki|desc))
44 | ((Wiki|desc|timeout))
45 |
46 | Table
47 | ||row1 col1|row1 col2|row1 col3
48 | row2 col1|row2 col2|row2 col3
49 | row3 col1|row3 col2|row3 col3||
50 |
51 | Lists:
52 | *bla
53 | **bla-1
54 | ++continue-bla-1
55 | ***bla-2
56 | ++continue-bla-1
57 | *bla
58 | +continue-bla
59 | #bla
60 | ** tra-la-la
61 | +continue-bla
62 | #bla
63 |
64 | Plugin (standard):
65 | {PLUGIN(attr="my attr")}
66 | Plugin Body
67 | {PLUGIN}
68 |
69 | Plugin (inline):
70 | {plugin attr="my attr"}
71 |
72 |
73 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/tiki/tiki.css:
--------------------------------------------------------------------------------
1 | .cm-tw-syntaxerror {
2 | color: #FFF;
3 | background-color: #900;
4 | }
5 |
6 | .cm-tw-deleted {
7 | text-decoration: line-through;
8 | }
9 |
10 | .cm-tw-header5 {
11 | font-weight: bold;
12 | }
13 | .cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/
14 | padding-left: 10px;
15 | }
16 |
17 | .cm-tw-box {
18 | border-top-width: 0px ! important;
19 | border-style: solid;
20 | border-width: 1px;
21 | border-color: inherit;
22 | }
23 |
24 | .cm-tw-underline {
25 | text-decoration: underline;
26 | }
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/turtle/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: Turtle mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: Turtle mode
14 |
15 | @prefix foaf: .
16 | @prefix geo: .
17 | @prefix rdf: .
18 |
19 |
20 | a foaf:Person;
21 | foaf:interest ;
22 | foaf:based_near [
23 | geo:lat "34.0736111" ;
24 | geo:lon "-118.3994444"
25 | ]
26 |
27 |
28 |
35 |
36 | MIME types defined: text/turtle
.
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/vb/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2012 Codility Limited, 107 Cheapside, London EC2V 6DN, UK
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/vbscript/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: VBScript mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: VBScript mode
14 |
15 |
16 | ' Pete Guhl
17 | ' 03-04-2012
18 | '
19 | ' Basic VBScript support for codemirror2
20 |
21 | Const ForReading = 1, ForWriting = 2, ForAppending = 8
22 |
23 | Call Sub020_PostBroadcastToUrbanAirship(strUserName, strPassword, intTransmitID, strResponse)
24 |
25 | If Not IsNull(strResponse) AND Len(strResponse) = 0 Then
26 | boolTransmitOkYN = False
27 | Else
28 | ' WScript.Echo "Oh Happy Day! Oh Happy DAY!"
29 | boolTransmitOkYN = True
30 | End If
31 |
32 |
33 |
38 |
39 | MIME types defined: text/vbscript
.
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/vbscript/vbscript.js:
--------------------------------------------------------------------------------
1 | CodeMirror.defineMode("vbscript", function() {
2 | var regexVBScriptKeyword = /^(?:Call|Case|CDate|Clear|CInt|CLng|Const|CStr|Description|Dim|Do|Each|Else|ElseIf|End|Err|Error|Exit|False|For|Function|If|LCase|Loop|LTrim|Next|Nothing|Now|Number|On|Preserve|Quit|ReDim|Resume|RTrim|Select|Set|Sub|Then|To|Trim|True|UBound|UCase|Until|VbCr|VbCrLf|VbLf|VbTab)$/im;
3 |
4 | return {
5 | token: function(stream) {
6 | if (stream.eatSpace()) return null;
7 | var ch = stream.next();
8 | if (ch == "'") {
9 | stream.skipToEnd();
10 | return "comment";
11 | }
12 | if (ch == '"') {
13 | stream.skipTo('"');
14 | return "string";
15 | }
16 |
17 | if (/\w/.test(ch)) {
18 | stream.eatWhile(/\w/);
19 | if (regexVBScriptKeyword.test(stream.current())) return "keyword";
20 | }
21 | return null;
22 | }
23 | };
24 | });
25 |
26 | CodeMirror.defineMIME("text/vbscript", "vbscript");
27 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/xml/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: XML mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: XML mode
14 |
15 | <html style="color: green">
16 | <!-- this is a comment -->
17 | <head>
18 | <title>HTML Example</title>
19 | </head>
20 | <body>
21 | The indentation tries to be <em>somewhat "do what
22 | I mean"</em>... but might not match your style.
23 | </body>
24 | </html>
25 |
26 |
32 | The XML mode supports two configuration parameters:
33 |
34 | htmlMode (boolean)
35 | This switches the mode to parse HTML instead of XML. This
36 | means attributes do not have to be quoted, and some elements
37 | (such as br
) do not require a closing tag.
38 | alignCDATA (boolean)
39 | Setting this to true will force the opening tag of CDATA
40 | blocks to not be indented.
41 |
42 |
43 | MIME types defined: application/xml
, text/html
.
44 |
45 |
46 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/xquery/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2011 by MarkLogic Corporation
2 | Author: Mike Brevoort
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy
5 | of this software and associated documentation files (the "Software"), to deal
6 | in the Software without restriction, including without limitation the rights
7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the Software is
9 | furnished to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in
12 | all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | THE SOFTWARE.
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/yaml/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: YAML mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: YAML mode
14 |
15 | --- # Favorite movies
16 | - Casablanca
17 | - North by Northwest
18 | - The Man Who Wasn't There
19 | --- # Shopping list
20 | [milk, pumpkin pie, eggs, juice]
21 | --- # Indented Blocks, common in YAML data files, use indentation and new lines to separate the key: value pairs
22 | name: John Smith
23 | age: 33
24 | --- # Inline Blocks, common in YAML data streams, use commas to separate the key: value pairs between braces
25 | {name: John Smith, age: 33}
26 | ---
27 | receipt: Oz-Ware Purchase Invoice
28 | date: 2007-08-06
29 | customer:
30 | given: Dorothy
31 | family: Gale
32 |
33 | items:
34 | - part_no: A4786
35 | descrip: Water Bucket (Filled)
36 | price: 1.47
37 | quantity: 4
38 |
39 | - part_no: E1628
40 | descrip: High Heeled "Ruby" Slippers
41 | size: 8
42 | price: 100.27
43 | quantity: 1
44 |
45 | bill-to: &id001
46 | street: |
47 | 123 Tornado Alley
48 | Suite 16
49 | city: East Centerville
50 | state: KS
51 |
52 | ship-to: *id001
53 |
54 | specialDelivery: >
55 | Follow the Yellow Brick
56 | Road to the Emerald City.
57 | Pay no attention to the
58 | man behind the curtain.
59 | ...
60 |
61 |
64 |
65 | MIME types defined: text/x-yaml
.
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/mode/z80/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CodeMirror: Z80 assembly mode
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | CodeMirror: Z80 assembly mode
14 |
15 |
16 | #include "ti83plus.inc"
17 | #define progStart $9D95
18 | .org progStart-2
19 | .db $BB,$6D
20 | bcall(_ClrLCDFull)
21 | ld HL, 0
22 | ld (PenCol), HL
23 | ld HL, Message
24 | bcall(_PutS) ; Displays the string
25 | bcall(_NewLine)
26 | ret
27 | Message:
28 | .db "Hello world!",0
29 |
30 |
31 |
36 |
37 | MIME type defined: text/x-z80
.
38 |
39 |
40 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/ambiance-mobile.css:
--------------------------------------------------------------------------------
1 | .cm-s-ambiance.CodeMirror {
2 | -webkit-box-shadow: none;
3 | -moz-box-shadow: none;
4 | box-shadow: none;
5 | }
6 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/blackboard.css:
--------------------------------------------------------------------------------
1 | /* Port of TextMate's Blackboard theme */
2 |
3 | .cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; }
4 | .cm-s-blackboard .CodeMirror-selected { background: #253B76 !important; }
5 | .cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; }
6 | .cm-s-blackboard .CodeMirror-linenumber { color: #888; }
7 | .cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; }
8 |
9 | .cm-s-blackboard .cm-keyword { color: #FBDE2D; }
10 | .cm-s-blackboard .cm-atom { color: #D8FA3C; }
11 | .cm-s-blackboard .cm-number { color: #D8FA3C; }
12 | .cm-s-blackboard .cm-def { color: #8DA6CE; }
13 | .cm-s-blackboard .cm-variable { color: #FF6400; }
14 | .cm-s-blackboard .cm-operator { color: #FBDE2D;}
15 | .cm-s-blackboard .cm-comment { color: #AEAEAE; }
16 | .cm-s-blackboard .cm-string { color: #61CE3C; }
17 | .cm-s-blackboard .cm-string-2 { color: #61CE3C; }
18 | .cm-s-blackboard .cm-meta { color: #D8FA3C; }
19 | .cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; }
20 | .cm-s-blackboard .cm-builtin { color: #8DA6CE; }
21 | .cm-s-blackboard .cm-tag { color: #8DA6CE; }
22 | .cm-s-blackboard .cm-attribute { color: #8DA6CE; }
23 | .cm-s-blackboard .cm-header { color: #FF6400; }
24 | .cm-s-blackboard .cm-hr { color: #AEAEAE; }
25 | .cm-s-blackboard .cm-link { color: #8DA6CE; }
26 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/cobalt.css:
--------------------------------------------------------------------------------
1 | .cm-s-cobalt.CodeMirror { background: #002240; color: white; }
2 | .cm-s-cobalt div.CodeMirror-selected { background: #b36539 !important; }
3 | .cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
4 | .cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; }
5 | .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; }
6 |
7 | .cm-s-cobalt span.cm-comment { color: #08f; }
8 | .cm-s-cobalt span.cm-atom { color: #845dc4; }
9 | .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
10 | .cm-s-cobalt span.cm-keyword { color: #ffee80; }
11 | .cm-s-cobalt span.cm-string { color: #3ad900; }
12 | .cm-s-cobalt span.cm-meta { color: #ff9d00; }
13 | .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
14 | .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
15 | .cm-s-cobalt span.cm-error { color: #9d1e15; }
16 | .cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
17 | .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
18 | .cm-s-cobalt span.cm-link { color: #845dc4; }
19 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/eclipse.css:
--------------------------------------------------------------------------------
1 | .cm-s-eclipse span.cm-meta {color: #FF1717;}
2 | .cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }
3 | .cm-s-eclipse span.cm-atom {color: #219;}
4 | .cm-s-eclipse span.cm-number {color: #164;}
5 | .cm-s-eclipse span.cm-def {color: #00f;}
6 | .cm-s-eclipse span.cm-variable {color: black;}
7 | .cm-s-eclipse span.cm-variable-2 {color: #0000C0;}
8 | .cm-s-eclipse span.cm-variable-3 {color: #0000C0;}
9 | .cm-s-eclipse span.cm-property {color: black;}
10 | .cm-s-eclipse span.cm-operator {color: black;}
11 | .cm-s-eclipse span.cm-comment {color: #3F7F5F;}
12 | .cm-s-eclipse span.cm-string {color: #2A00FF;}
13 | .cm-s-eclipse span.cm-string-2 {color: #f50;}
14 | .cm-s-eclipse span.cm-error {color: #f00;}
15 | .cm-s-eclipse span.cm-qualifier {color: #555;}
16 | .cm-s-eclipse span.cm-builtin {color: #30a;}
17 | .cm-s-eclipse span.cm-bracket {color: #cc7;}
18 | .cm-s-eclipse span.cm-tag {color: #170;}
19 | .cm-s-eclipse span.cm-attribute {color: #00c;}
20 | .cm-s-eclipse span.cm-link {color: #219;}
21 |
22 | .cm-s-eclipse .CodeMirror-matchingbracket {
23 | outline:1px solid grey;
24 | color:black !important;
25 | }
26 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/elegant.css:
--------------------------------------------------------------------------------
1 | .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;}
2 | .cm-s-elegant span.cm-comment {color: #262; font-style: italic; line-height: 1em;}
3 | .cm-s-elegant span.cm-meta {color: #555; font-style: italic; line-height: 1em;}
4 | .cm-s-elegant span.cm-variable {color: black;}
5 | .cm-s-elegant span.cm-variable-2 {color: #b11;}
6 | .cm-s-elegant span.cm-qualifier {color: #555;}
7 | .cm-s-elegant span.cm-keyword {color: #730;}
8 | .cm-s-elegant span.cm-builtin {color: #30a;}
9 | .cm-s-elegant span.cm-error {background-color: #fdd;}
10 | .cm-s-elegant span.cm-link {color: #762;}
11 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/erlang-dark.css:
--------------------------------------------------------------------------------
1 | .cm-s-erlang-dark.CodeMirror { background: #002240; color: white; }
2 | .cm-s-erlang-dark div.CodeMirror-selected { background: #b36539 !important; }
3 | .cm-s-erlang-dark .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
4 | .cm-s-erlang-dark .CodeMirror-linenumber { color: #d0d0d0; }
5 | .cm-s-erlang-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
6 |
7 | .cm-s-erlang-dark span.cm-atom { color: #845dc4; }
8 | .cm-s-erlang-dark span.cm-attribute { color: #ff80e1; }
9 | .cm-s-erlang-dark span.cm-bracket { color: #ff9d00; }
10 | .cm-s-erlang-dark span.cm-builtin { color: #eaa; }
11 | .cm-s-erlang-dark span.cm-comment { color: #77f; }
12 | .cm-s-erlang-dark span.cm-def { color: #e7a; }
13 | .cm-s-erlang-dark span.cm-error { color: #9d1e15; }
14 | .cm-s-erlang-dark span.cm-keyword { color: #ffee80; }
15 | .cm-s-erlang-dark span.cm-meta { color: #50fefe; }
16 | .cm-s-erlang-dark span.cm-number { color: #ffd0d0; }
17 | .cm-s-erlang-dark span.cm-operator { color: #d11; }
18 | .cm-s-erlang-dark span.cm-string { color: #3ad900; }
19 | .cm-s-erlang-dark span.cm-tag { color: #9effff; }
20 | .cm-s-erlang-dark span.cm-variable { color: #50fe50; }
21 | .cm-s-erlang-dark span.cm-variable-2 { color: #e0e; }
22 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/lesser-dark.css:
--------------------------------------------------------------------------------
1 | /*
2 | http://lesscss.org/ dark theme
3 | Ported to CodeMirror by Peter Kroon
4 | */
5 | .cm-s-lesser-dark {
6 | line-height: 1.3em;
7 | }
8 | .cm-s-lesser-dark {
9 | font-family: 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', 'Monaco', Courier, monospace !important;
10 | }
11 |
12 | .cm-s-lesser-dark.CodeMirror { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; }
13 | .cm-s-lesser-dark div.CodeMirror-selected {background: #45443B !important;} /* 33322B*/
14 | .cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
15 | .cm-s-lesser-dark pre { padding: 0 8px; }/*editable code holder*/
16 |
17 | div.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/
18 |
19 | .cm-s-lesser-dark .CodeMirror-gutters { background: #262626; border-right:1px solid #aaa; }
20 | .cm-s-lesser-dark .CodeMirror-linenumber { color: #777; }
21 |
22 | .cm-s-lesser-dark span.cm-keyword { color: #599eff; }
23 | .cm-s-lesser-dark span.cm-atom { color: #C2B470; }
24 | .cm-s-lesser-dark span.cm-number { color: #B35E4D; }
25 | .cm-s-lesser-dark span.cm-def {color: white;}
26 | .cm-s-lesser-dark span.cm-variable { color:#D9BF8C; }
27 | .cm-s-lesser-dark span.cm-variable-2 { color: #669199; }
28 | .cm-s-lesser-dark span.cm-variable-3 { color: white; }
29 | .cm-s-lesser-dark span.cm-property {color: #92A75C;}
30 | .cm-s-lesser-dark span.cm-operator {color: #92A75C;}
31 | .cm-s-lesser-dark span.cm-comment { color: #666; }
32 | .cm-s-lesser-dark span.cm-string { color: #BCD279; }
33 | .cm-s-lesser-dark span.cm-string-2 {color: #f50;}
34 | .cm-s-lesser-dark span.cm-meta { color: #738C73; }
35 | .cm-s-lesser-dark span.cm-error { color: #9d1e15; }
36 | .cm-s-lesser-dark span.cm-qualifier {color: #555;}
37 | .cm-s-lesser-dark span.cm-builtin { color: #ff9e59; }
38 | .cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; }
39 | .cm-s-lesser-dark span.cm-tag { color: #669199; }
40 | .cm-s-lesser-dark span.cm-attribute {color: #00c;}
41 | .cm-s-lesser-dark span.cm-header {color: #a0a;}
42 | .cm-s-lesser-dark span.cm-quote {color: #090;}
43 | .cm-s-lesser-dark span.cm-hr {color: #999;}
44 | .cm-s-lesser-dark span.cm-link {color: #00c;}
45 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/midnight.css:
--------------------------------------------------------------------------------
1 | /* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */
2 |
3 | /**/
4 | .breakpoints {width: .8em;}
5 | .breakpoint { color: #822; }
6 |
7 | /**/
8 | span.CodeMirror-matchhighlight { background: #494949 }
9 | .CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67; !important }
10 |
11 | /**/
12 | .activeline {background: #253540 !important;}
13 |
14 | .cm-s-midnight.CodeMirror {
15 | background: #0F192A;
16 | color: #D1EDFF;
17 | }
18 |
19 | .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
20 |
21 | .cm-s-midnight div.CodeMirror-selected {background: #314D67 !important;}
22 | .cm-s-midnight .CodeMirror-gutters {background: #0F192A; border-right: 1px solid;}
23 | .cm-s-midnight .CodeMirror-linenumber {color: #D0D0D0;}
24 | .cm-s-midnight .CodeMirror-cursor {
25 | border-left: 1px solid #F8F8F0 !important;
26 | }
27 |
28 | .cm-s-midnight span.cm-comment {color: #428BDD;}
29 | .cm-s-midnight span.cm-atom {color: #AE81FF;}
30 | .cm-s-midnight span.cm-number {color: #D1EDFF;}
31 |
32 | .cm-s-midnight span.cm-property, .cm-s-tropicaleve span.cm-attribute {color: #A6E22E;}
33 | .cm-s-midnight span.cm-keyword {color: #E83737;}
34 | .cm-s-midnight span.cm-string {color: #1DC116;}
35 |
36 | .cm-s-midnight span.cm-variable {color: #FFAA3E;}
37 | .cm-s-midnight span.cm-variable-2 {color: #FFAA3E;}
38 | .cm-s-midnight span.cm-def {color: #4DD;}
39 | .cm-s-midnight span.cm-error {background: #F92672; color: #F8F8F0;}
40 | .cm-s-midnight span.cm-bracket {color: #D1EDFF;}
41 | .cm-s-midnight span.cm-tag {color: #008;}
42 | .cm-s-midnight span.cm-link {color: #AE81FF;}
43 |
44 | .cm-s-midnight .CodeMirror-matchingbracket {
45 | text-decoration: underline;
46 | color: white !important;
47 | }
48 |
49 | .typ { color: #FFAA3E; }
50 | .atn { color: #606; }
51 | .atv { color: #080; }
52 | .dec { color: #606; }
53 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/monokai.css:
--------------------------------------------------------------------------------
1 | /* Based on Sublime Text's Monokai theme */
2 |
3 | .cm-s-monokai.CodeMirror {background: #272822; color: #f8f8f2;}
4 | .cm-s-monokai div.CodeMirror-selected {background: #49483E !important;}
5 | .cm-s-monokai .CodeMirror-gutters {background: #272822; border-right: 0px;}
6 | .cm-s-monokai .CodeMirror-linenumber {color: #d0d0d0;}
7 | .cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
8 |
9 | .cm-s-monokai span.cm-comment {color: #75715e;}
10 | .cm-s-monokai span.cm-atom {color: #ae81ff;}
11 | .cm-s-monokai span.cm-number {color: #ae81ff;}
12 |
13 | .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;}
14 | .cm-s-monokai span.cm-keyword {color: #f92672;}
15 | .cm-s-monokai span.cm-string {color: #e6db74;}
16 |
17 | .cm-s-monokai span.cm-variable {color: #a6e22e;}
18 | .cm-s-monokai span.cm-variable-2 {color: #9effff;}
19 | .cm-s-monokai span.cm-def {color: #fd971f;}
20 | .cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
21 | .cm-s-monokai span.cm-bracket {color: #f8f8f2;}
22 | .cm-s-monokai span.cm-tag {color: #f92672;}
23 | .cm-s-monokai span.cm-link {color: #ae81ff;}
24 |
25 | .cm-s-monokai .CodeMirror-matchingbracket {
26 | text-decoration: underline;
27 | color: white !important;
28 | }
29 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/neat.css:
--------------------------------------------------------------------------------
1 | .cm-s-neat span.cm-comment { color: #a86; }
2 | .cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }
3 | .cm-s-neat span.cm-string { color: #a22; }
4 | .cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }
5 | .cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }
6 | .cm-s-neat span.cm-variable { color: black; }
7 | .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
8 | .cm-s-neat span.cm-meta {color: #555;}
9 | .cm-s-neat span.cm-link { color: #3a3; }
10 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/night.css:
--------------------------------------------------------------------------------
1 | /* Loosely based on the Midnight Textmate theme */
2 |
3 | .cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; }
4 | .cm-s-night div.CodeMirror-selected { background: #447 !important; }
5 | .cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
6 | .cm-s-night .CodeMirror-linenumber { color: #f8f8f8; }
7 | .cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; }
8 |
9 | .cm-s-night span.cm-comment { color: #6900a1; }
10 | .cm-s-night span.cm-atom { color: #845dc4; }
11 | .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
12 | .cm-s-night span.cm-keyword { color: #599eff; }
13 | .cm-s-night span.cm-string { color: #37f14a; }
14 | .cm-s-night span.cm-meta { color: #7678e2; }
15 | .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
16 | .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
17 | .cm-s-night span.cm-error { color: #9d1e15; }
18 | .cm-s-night span.cm-bracket { color: #8da6ce; }
19 | .cm-s-night span.cm-comment { color: #6900a1; }
20 | .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
21 | .cm-s-night span.cm-link { color: #845dc4; }
22 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/rubyblue.css:
--------------------------------------------------------------------------------
1 | .cm-s-rubyblue { font-family: Trebuchet, Verdana, sans-serif; } /* - customized editor font - */
2 |
3 | .cm-s-rubyblue.CodeMirror { background: #112435; color: white; }
4 | .cm-s-rubyblue div.CodeMirror-selected { background: #38566F !important; }
5 | .cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; }
6 | .cm-s-rubyblue .CodeMirror-linenumber { color: white; }
7 | .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }
8 |
9 | .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }
10 | .cm-s-rubyblue span.cm-atom { color: #F4C20B; }
11 | .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
12 | .cm-s-rubyblue span.cm-keyword { color: #F0F; }
13 | .cm-s-rubyblue span.cm-string { color: #F08047; }
14 | .cm-s-rubyblue span.cm-meta { color: #F0F; }
15 | .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
16 | .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
17 | .cm-s-rubyblue span.cm-error { color: #AF2018; }
18 | .cm-s-rubyblue span.cm-bracket { color: #F0F; }
19 | .cm-s-rubyblue span.cm-link { color: #F4C20B; }
20 | .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
21 | .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
22 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/twilight.css:
--------------------------------------------------------------------------------
1 | .cm-s-twilight.CodeMirror { background: #141414; color: #f7f7f7; } /**/
2 | .cm-s-twilight .CodeMirror-selected { background: #323232 !important; } /**/
3 |
4 | .cm-s-twilight .CodeMirror-gutters { background: #222; border-right: 1px solid #aaa; }
5 | .cm-s-twilight .CodeMirror-linenumber { color: #aaa; }
6 | .cm-s-twilight .CodeMirror-cursor { border-left: 1px solid white !important; }
7 |
8 | .cm-s-twilight .cm-keyword { color: #f9ee98; } /**/
9 | .cm-s-twilight .cm-atom { color: #FC0; }
10 | .cm-s-twilight .cm-number { color: #ca7841; } /**/
11 | .cm-s-twilight .cm-def { color: #8DA6CE; }
12 | .cm-s-twilight span.cm-variable-2, .cm-s-twilight span.cm-tag { color: #607392; } /**/
13 | .cm-s-twilight span.cm-variable-3, .cm-s-twilight span.cm-def { color: #607392; } /**/
14 | .cm-s-twilight .cm-operator { color: #cda869; } /**/
15 | .cm-s-twilight .cm-comment { color:#777; font-style:italic; font-weight:normal; } /**/
16 | .cm-s-twilight .cm-string { color:#8f9d6a; font-style:italic; } /**/
17 | .cm-s-twilight .cm-string-2 { color:#bd6b18 } /*?*/
18 | .cm-s-twilight .cm-meta { background-color:#141414; color:#f7f7f7; } /*?*/
19 | .cm-s-twilight .cm-error { border-bottom: 1px solid red; }
20 | .cm-s-twilight .cm-builtin { color: #cda869; } /*?*/
21 | .cm-s-twilight .cm-tag { color: #997643; } /**/
22 | .cm-s-twilight .cm-attribute { color: #d6bb6d; } /*?*/
23 | .cm-s-twilight .cm-header { color: #FF6400; }
24 | .cm-s-twilight .cm-hr { color: #AEAEAE; }
25 | .cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/
26 |
27 |
--------------------------------------------------------------------------------
/Web Interface/codemirror/theme/vibrant-ink.css:
--------------------------------------------------------------------------------
1 | /* Taken from the popular Visual Studio Vibrant Ink Schema */
2 |
3 | .cm-s-vibrant-ink.CodeMirror { background: black; color: white; }
4 | .cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; }
5 |
6 | .cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
7 | .cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; }
8 | .cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white !important; }
9 |
10 | .cm-s-vibrant-ink .cm-keyword { color: #CC7832; }
11 | .cm-s-vibrant-ink .cm-atom { color: #FC0; }
12 | .cm-s-vibrant-ink .cm-number { color: #FFEE98; }
13 | .cm-s-vibrant-ink .cm-def { color: #8DA6CE; }
14 | .cm-s-vibrant-ink span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #FFC66D }
15 | .cm-s-vibrant-ink span.cm-variable-3, .cm-s-cobalt span.cm-def { color: #FFC66D }
16 | .cm-s-vibrant-ink .cm-operator { color: #888; }
17 | .cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; }
18 | .cm-s-vibrant-ink .cm-string { color: #A5C25C }
19 | .cm-s-vibrant-ink .cm-string-2 { color: red }
20 | .cm-s-vibrant-ink .cm-meta { color: #D8FA3C; }
21 | .cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; }
22 | .cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; }
23 | .cm-s-vibrant-ink .cm-tag { color: #8DA6CE; }
24 | .cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; }
25 | .cm-s-vibrant-ink .cm-header { color: #FF6400; }
26 | .cm-s-vibrant-ink .cm-hr { color: #AEAEAE; }
27 | .cm-s-vibrant-ink .cm-link { color: blue; }
28 |
--------------------------------------------------------------------------------
/Web Interface/css/style.css:
--------------------------------------------------------------------------------
1 | .contestheader{
2 | background: url(../img/wood_1.png);
3 | color: #ccc;
4 | }
5 | .contestheader h1{
6 | padding: 100px 0 40px 0;
7 | }
8 | #contesttimer{
9 | background: rgba(255,255,255,0.1);
10 | padding: 10px;
11 | box-shadow: 0 0 10px #000;
12 | }
13 | .no-padding{
14 | padding: 0 0 0 0;
15 | }
16 | .footer{
17 | margin-left: -30px;
18 | padding: 0 15px;
19 | color: #0f0f0f;
20 | text-align: center;
21 | padding: 10px;
22 | border-top: 1px solid #ccc;
23 | }
24 | .bodycont{
25 | padding-top: 60px;
26 | text-align: justify;
27 | }
28 | th{
29 | padding: 5px;
30 |
31 | }
32 | #mainbar{
33 | overflow-x: auto;
34 | }
35 | #sidebar{
36 | background: #f8f8f8;
37 | border-left: 1px solid #e0e0e0;
38 | border-right: 1px solid #e0e0e0;
39 | padding: 0 5px;
40 | overflow-x: auto;
41 | }
42 | ::-webkit-scrollbar {
43 | width: 10px;
44 | }
45 | ::-webkit-scrollbar-track {
46 | background: #f2f2f2;
47 | box-shadow: inset 0px 0px 5px #aaa;
48 | }
49 | ::-webkit-scrollbar-thumb {
50 | background-color: #aaa;
51 | box-shadow: inset 0px 0px 5px #777;
52 | }
53 |
54 | code{
55 | color: #d14;
56 | background: none;
57 | font-weight: bold;
58 | font-size: 14px;
59 | }
60 | .faq{
61 | width: 100%;
62 | }
63 | .post{
64 | margin: 10px;
65 | background: #f9f9f9;
66 | border-radius: 10px;
67 | padding: 10px;
68 | box-shadow: 0 0 5px #000;
69 | }
70 | .mismatch th{
71 | background: none;
72 | font-size: 20px;
73 | width: 300px;
74 | }
75 | .mismatch td {
76 | padding: 0 10px;
77 | }
78 | .line {
79 | text-align: right;
80 | color: #afafaf;
81 | border-right: 3px solid rgb(108, 226, 108);
82 | }
83 |
84 | .elipsis_sizer td {
85 | max-width: 150px;
86 | overflow: hidden;
87 | text-overflow: ellipsis;
88 | white-space: nowrap;
89 | }
90 |
91 | .dropdown-menu li:hover {
92 | cursor: pointer;
93 | }
94 | .tabletaghidden {
95 | display:none;
96 | }
97 |
--------------------------------------------------------------------------------
/Web Interface/files/LiveContestRanking.php:
--------------------------------------------------------------------------------
1 | ' ;
10 | $result = DB::findOneFromQuery($query);
11 | $rankTable = json_decode($result['ranktable'], true);
12 | $rank = 1;
13 | if ($rankTable) {
14 | foreach ($rankTable as $row) {
15 | $table .= '';
16 | $table .= ''.$rank.' '.$row['teamname'].' '.$row['score'].' ';
17 | $table .= ' ';
18 | if($rank >= $limit)
19 | break;
20 | $rank ++;
21 |
22 | }
23 | } else {
24 | $table .= "No Data Available. ";
25 | }
26 | $table .= '';
27 | return $table;
28 | }
29 | //SSE_Util::sendMessageToClient($printTable);
30 |
--------------------------------------------------------------------------------
/Web Interface/files/SSE_Util.php:
--------------------------------------------------------------------------------
1 |
4 | Broadcast (Works only during live contest)
5 | Add broadcast msg
6 |
7 |
15 |
23 |
31 |
32 | Messages
33 | ";
47 | } else {
48 | $_SESSION['msg'] = "Access Denied: You need to be administrator to access that page.";
49 | redirectTo(SITE_URL . "/");
50 | }
51 | ?>
--------------------------------------------------------------------------------
/Web Interface/files/admingroup.php:
--------------------------------------------------------------------------------
1 | Groups Settings
4 |
5 |
6 |
7 | ";
8 | $query = "select * from groups";
9 | $result = DB::findAllFromQuery($query);
10 | echo "
List of Groups
11 |
";
29 | } else {
30 | $_SESSION['msg'] = "Access Denied: You need to be administrator to access that page.";
31 | redirectTo(SITE_URL . "/");
32 | }
33 | ?>
34 |
--------------------------------------------------------------------------------
/Web Interface/files/adminlog.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
Teams
13 |
24 |
25 | %". $_GET['code'] ."%'";
33 | }
34 | $body .= " order by time desc";
35 | $result = DB::findAllWithCount("select *", $body, $page, 10);
36 | $data = $result['data'];
37 | echo "
Time IP Session Request ";
38 | foreach ($data as $row) {
39 | echo "" . date("d/m/Y h:i:sa", $row['time']) . " $row[ip] $row[tid] $row[request] ";
40 | }
41 | echo "
";
42 | pagination($result['noofpages'], SITE_URL."/adminlog".((isset($_GET['code']))?("/$_GET[code]"):("")), $page, 10);
43 | } else {
44 | $_SESSION['msg'] = "Access Denied: You need to be administrator to access that page.";
45 | redirectTo(SITE_URL . "/");
46 | }
47 | ?>
48 |
--------------------------------------------------------------------------------
/Web Interface/files/contact.php:
--------------------------------------------------------------------------------
1 |
4 |
5 | ", $row['query']));
16 | $row['reply'] = htmlentities(preg_replace("/\n/", "
", $row['reply']));
17 | $query = "Select teamname from teams where tid = $row[tid]";
18 | $team = DB::findOneFromQuery($query);
19 | echo "
$team[teamname] : $row[query]" . (($row['reply'] != "") ? ("
A. $row[reply]
") : ('')) . "
";
20 | }
21 | if (isset($_SESSION['loggedin'])) {
22 | ?>
23 |
Please feel free to post your queries/doubts/praise/criticism/feedback. We will reply as soon as we can!
24 |
25 |
26 |
27 |
28 |
29 |
Lockdown Mode :( This feature is now offline as Judge is in Lockdown mode.";
34 | }
35 | ?>
36 |
--------------------------------------------------------------------------------
/Web Interface/files/date.php:
--------------------------------------------------------------------------------
1 | getTimestamp();
11 | echo $startdate;
12 | var_dump(Leaderboard::getStaticRankTableInJSON('test-1'));
13 | ?>
--------------------------------------------------------------------------------
/Web Interface/files/edit.php:
--------------------------------------------------------------------------------
1 |
6 |
Account Settings
7 |
8 |
12 |
16 |
20 |
34 |
40 |
41 | For other changes contact admins.
42 |
48 |
--------------------------------------------------------------------------------
/Web Interface/files/editorial.php:
--------------------------------------------------------------------------------
1 |
Edit";
9 | } else {
10 | $query = "select * from problems where code = '$_GET[code]' and status != 'Deleted'";
11 | $result = DB::findOneFromQuery($query);
12 | }
13 | if ($result == NULL) {
14 | echo "
Problem not Found :( The problem you are looking for doesn't exsits.";
15 | } else {
16 | $contentRes = DB::findOneFromQuery("select content from editorials where pid = " . $result['pid']);
17 | if($contentRes == NULL){
18 | echo "
Editorial not Found :( The editorial you are looking for doesn't exsits.";
19 | }else{
20 | $content = stripslashes($contentRes["content"]);
21 | echo "
22 |
" . $content . "
";
23 | }
24 | }
25 | } else {
26 | echo "
Problem not Found :( The problem you are looking for doesn't exsits.";
27 | }
28 | } else {
29 | echo "
Lockdown Mode :( This feature is now offline as Judge is in Lockdown mode.";
30 | }
31 | ?>
32 |
--------------------------------------------------------------------------------
/Web Interface/files/home.php:
--------------------------------------------------------------------------------
1 |
Edit";
4 | }
5 | echo "
Notice ";
6 | $query = "select value from admin where variable='notice'";
7 | $result = DB::findOneFromQuery($query);
8 | $data = $result['value'];
9 | $data = str_replace("\r", "", $data);
10 | $data = preg_replace("/\n\n\n*/", "\n\n", $data);
11 | $data = preg_replace("/[\s\n]*$/", "", $data);
12 | $data = explode("\n\n", $data);
13 | foreach ($data as $x) {
14 | $y = explode("\n", $x);
15 | if (!isset($y[0]))
16 | continue;
17 | if (isset($y[0][0]) and $y[0][0] == "~" and $_SESSION["status"] != "Admin")
18 | continue;
19 | if (isset($y[0][0]) and $y[0][0] == "~")
20 | $y[0] = substr($y[0], 1);
21 | echo "
" . stripslashes($y[0]) . " ";
22 | for ($i = 1; $i < count($y); $i++)
23 | echo "" . stripslashes($y[$i]) . " ";
24 | echo "
";
25 | }
26 | ?>
--------------------------------------------------------------------------------
/Web Interface/files/preparecontest.php:
--------------------------------------------------------------------------------
1 | ';
10 | }
11 |
12 |
13 | function getArrayOfRIDsToBeDeleted($contestID) {
14 | $query = "SELECT rid from runs WHERE pid IN(SELECT pid FROM problems WHERE pgroup='$contestID')";
15 | return DB::findAllFromQuery($query);
16 | }
17 |
18 | function deleteRIDsFromRunsAndSubsCode($ridArray) {
19 | foreach($ridArray as $rid) {
20 | DB::query('delete from runs where rid = '.$rid['rid']);
21 | DB::query('delete from subs_code where rid = '.$rid['rid']);
22 | echo 'Deleted RID : '.$rid['rid'].'
';
23 | }
24 | }
25 |
26 | $contestID = $_GET['code'];
27 | $query = "SELECT starttime FROM contest WHERE code = '$contestID'";
28 | $result = DB::findOneFromQuery($query);
29 | $currentTime = time();
30 | if($currentTime > $result['starttime'] )
31 | die('Access denied');
32 | $query = "UPDATE admin set value='$contestID' where variable='currentContest'";
33 | DB::query($query);
34 | echo 'Current Contest set to $contestID';
35 | activateContestProblems($contestID);
36 | deleteRIDsFromRunsAndSubsCode(getArrayOfRIDsToBeDeleted($contestID));
37 | echo 'Ready !!!';
38 |
--------------------------------------------------------------------------------
/Web Interface/files/rejudge.php:
--------------------------------------------------------------------------------
1 | Cannot connect to Judge: Contact Admin";
5 | }
6 | fwrite($client, 'rejudge');
7 | fclose($client);
8 | ?>
9 |
--------------------------------------------------------------------------------
/Web Interface/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/Web Interface/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/Web Interface/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/Web Interface/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/Web Interface/img/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/img/favicon.png
--------------------------------------------------------------------------------
/Web Interface/img/glyphicons-halflings-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/img/glyphicons-halflings-white.png
--------------------------------------------------------------------------------
/Web Interface/img/glyphicons-halflings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/img/glyphicons-halflings.png
--------------------------------------------------------------------------------
/Web Interface/img/wood_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/img/wood_1.png
--------------------------------------------------------------------------------
/Web Interface/js/custom.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function(){
2 |
3 | $("#prob_tag").click(function(){
4 | //console.log("button clicked");
5 |
6 | $('.tabletaghidden').toggle();
7 |
8 | });
9 | });
10 |
--------------------------------------------------------------------------------
/Web Interface/js/npm.js:
--------------------------------------------------------------------------------
1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
2 | require('../../js/transition.js')
3 | require('../../js/alert.js')
4 | require('../../js/button.js')
5 | require('../../js/carousel.js')
6 | require('../../js/collapse.js')
7 | require('../../js/dropdown.js')
8 | require('../../js/modal.js')
9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')
--------------------------------------------------------------------------------
/Web Interface/js/plugin.js:
--------------------------------------------------------------------------------
1 | // Avoid `console` errors in browsers that lack a console.
2 | (function() {
3 | var method;
4 | var noop = function () {};
5 | var methods = [
6 | 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
7 | 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
8 | 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
9 | 'timeStamp', 'trace', 'warn'
10 | ];
11 | var length = methods.length;
12 | var console = (window.console = window.console || {});
13 |
14 | while (length--) {
15 | method = methods[length];
16 |
17 | // Only stub undefined methods.
18 | if (!console[method]) {
19 | console[method] = noop;
20 | }
21 | }
22 | }());
23 |
24 | // Place any jQuery/helper plugins in here.
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/advlist/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("advlist",function(t){function e(t,e){var n=[];return tinymce.each(e.split(/[ ,]/),function(t){n.push({text:t.replace(/\-/g," ").replace(/\b\w/g,function(t){return t.toUpperCase()}),data:"default"==t?"":t})}),n}function n(e,n){var o,l=t.dom,a=t.selection;o=l.getParent(a.getNode(),"ol,ul"),o&&o.nodeName==e&&n!==!1||t.execCommand("UL"==e?"InsertUnorderedList":"InsertOrderedList"),n=n===!1?i[e]:n,i[e]=n,o=l.getParent(a.getNode(),"ol,ul"),o&&n&&(l.setStyle(o,"listStyleType",n),o.removeAttribute("data-mce-style")),t.focus()}function o(e){var n=t.dom.getStyle(t.dom.getParent(t.selection.getNode(),"ol,ul"),"listStyleType")||"";e.control.items().each(function(t){t.active(t.settings.data===n)})}var l,a,i={};l=e("OL",t.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman")),a=e("UL",t.getParam("advlist_bullet_styles","default,circle,disc,square")),t.addButton("numlist",{type:"splitbutton",tooltip:"Numbered list",menu:l,onshow:o,onselect:function(t){n("OL",t.control.settings.data)},onclick:function(){n("OL",!1)}}),t.addButton("bullist",{type:"splitbutton",tooltip:"Bullet list",menu:a,onshow:o,onselect:function(t){n("UL",t.control.settings.data)},onclick:function(){n("UL",!1)}})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/anchor/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("anchor",function(n){function e(){var e=n.selection.getNode(),t="";"A"==e.tagName&&(t=e.name||e.id||""),n.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:t},onsubmit:function(e){n.execCommand("mceInsertContent",!1,n.dom.createHTML("a",{id:e.data.name}))}})}n.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:e,stateSelector:"a:not([href])"}),n.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:e})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/autolink/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("autolink",function(n){function t(n){o(n,-1,"(",!0)}function e(n){o(n,0,"",!0)}function i(n){o(n,-1,"",!1)}function o(n,t,e){function i(n,t){if(0>t&&(t=0),3==n.nodeType){var e=n.data.length;t>e&&(t=e)}return t}function o(n,t){f.setStart(n,i(n,t))}function r(n,t){f.setEnd(n,i(n,t))}var f,d,a,s,c,l,u,g,h,C;if(f=n.selection.getRng(!0).cloneRange(),f.startOffset<5){if(g=f.endContainer.previousSibling,!g){if(!f.endContainer.firstChild||!f.endContainer.firstChild.nextSibling)return;g=f.endContainer.firstChild.nextSibling}if(h=g.length,o(g,h),r(g,h),f.endOffset<5)return;d=f.endOffset,s=g}else{if(s=f.endContainer,3!=s.nodeType&&s.firstChild){for(;3!=s.nodeType&&s.firstChild;)s=s.firstChild;3==s.nodeType&&(o(s,0),r(s,s.nodeValue.length))}d=1==f.endOffset?2:f.endOffset-1-t}a=d;do o(s,d>=2?d-2:0),r(s,d>=1?d-1:0),d-=1,C=f.toString();while(" "!=C&&""!==C&&160!=C.charCodeAt(0)&&d-2>=0&&C!=e);f.toString()==e||160==f.toString().charCodeAt(0)?(o(s,d),r(s,a),d+=1):0===f.startOffset?(o(s,0),r(s,a)):(o(s,d),r(s,a)),l=f.toString(),"."==l.charAt(l.length-1)&&r(s,a-1),l=f.toString(),u=l.match(/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i),u&&("www."==u[1]?u[1]="http://www.":/@$/.test(u[1])&&!/^mailto:/.test(u[1])&&(u[1]="mailto:"+u[1]),c=n.selection.getBookmark(),n.selection.setRng(f),n.execCommand("createlink",!1,u[1]+u[2]),n.selection.moveToBookmark(c),n.nodeChanged())}var r;return n.on("keydown",function(t){return 13==t.keyCode?i(n):void 0}),tinymce.Env.ie?void n.on("focus",function(){if(!r){r=!0;try{n.execCommand("AutoUrlDetect",!1,!0)}catch(t){}}}):(n.on("keypress",function(e){return 41==e.keyCode?t(n):void 0}),void n.on("keyup",function(t){return 32==t.keyCode?e(n):void 0}))});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/autoresize/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("autoresize",function(e){function t(){return e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()}function i(o){var r,s,g,m,l,d,u,h,f,c,_,p,y=tinymce.DOM;if(s=e.getDoc()){if(g=s.body,m=s.documentElement,l=n.autoresize_min_height,!g||o&&"setcontent"===o.type&&o.initial||t())return void(g&&m&&(g.style.overflowY="auto",m.style.overflowY="auto"));u=e.dom.getStyle(g,"margin-top",!0),h=e.dom.getStyle(g,"margin-bottom",!0),f=e.dom.getStyle(g,"padding-top",!0),c=e.dom.getStyle(g,"padding-bottom",!0),_=e.dom.getStyle(g,"border-top-width",!0),p=e.dom.getStyle(g,"border-bottom-width",!0),d=g.offsetHeight+parseInt(u,10)+parseInt(h,10)+parseInt(f,10)+parseInt(c,10)+parseInt(_,10)+parseInt(p,10),(isNaN(d)||0>=d)&&(d=tinymce.Env.ie?g.scrollHeight:tinymce.Env.webkit&&0===g.clientHeight?0:g.offsetHeight),d>n.autoresize_min_height&&(l=d),n.autoresize_max_height&&d>n.autoresize_max_height?(l=n.autoresize_max_height,g.style.overflowY="auto",m.style.overflowY="auto"):(g.style.overflowY="hidden",m.style.overflowY="hidden",g.scrollTop=0),l!==a&&(r=l-a,y.setStyle(e.iframeElement,"height",l+"px"),a=l,tinymce.isWebKit&&0>r&&i(o))}}function o(e,t,n){setTimeout(function(){i({}),e--?o(e,t,n):n&&n()},t)}var n=e.settings,a=0;e.settings.inline||(n.autoresize_min_height=parseInt(e.getParam("autoresize_min_height",e.getElement().offsetHeight),10),n.autoresize_max_height=parseInt(e.getParam("autoresize_max_height",0),10),e.on("init",function(){var t=e.getParam("autoresize_overflow_padding",1);e.dom.setStyles(e.getBody(),{paddingBottom:e.getParam("autoresize_bottom_margin",50),paddingLeft:t,paddingRight:t})}),e.on("nodechange setcontent keyup FullscreenStateChanged",i),e.getParam("autoresize_on_init",!0)&&e.on("init",function(){o(20,100,function(){o(5,1e3)})}),e.addCommand("mceAutoResize",i))});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/autosave/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce._beforeUnloadHandler=function(){var e;return tinymce.each(tinymce.editors,function(t){t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&t.getParam("autosave_ask_before_unload",!0)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e},tinymce.PluginManager.add("autosave",function(e){function t(e,t){var n={s:1e3,m:6e4};return e=/^(\d+)([ms]?)$/.exec(""+(e||t)),(e[2]?n[e[2]]:1)*parseInt(e,10)}function n(){var e=parseInt(v.getItem(c+"time"),10)||0;return(new Date).getTime()-e>m.autosave_retention?(a(!1),!1):!0}function a(t){v.removeItem(c+"draft"),v.removeItem(c+"time"),t!==!1&&e.fire("RemoveDraft")}function r(){!f()&&e.isDirty()&&(v.setItem(c+"draft",e.getContent({format:"raw",no_events:!0})),v.setItem(c+"time",(new Date).getTime()),e.fire("StoreDraft"))}function o(){n()&&(e.setContent(v.getItem(c+"draft"),{format:"raw"}),e.fire("RestoreDraft"))}function i(){d||(setInterval(function(){e.removed||r()},m.autosave_interval),d=!0)}function s(){var t=this;t.disabled(!n()),e.on("StoreDraft RestoreDraft RemoveDraft",function(){t.disabled(!n())}),i()}function u(){e.undoManager.beforeChange(),o(),a(),e.undoManager.add()}function f(t){var n=e.settings.forced_root_block;return t=tinymce.trim("undefined"==typeof t?e.getBody().innerHTML:t),""===t||new RegExp("^<"+n+"[^>]*>(( | |[ ]|
]*>)+?|)"+n+">|
$","i").test(t)}var c,d,m=e.settings,v=tinymce.util.LocalStorage;c=m.autosave_prefix||"tinymce-autosave-{path}{query}-{id}-",c=c.replace(/\{path\}/g,document.location.pathname),c=c.replace(/\{query\}/g,document.location.search),c=c.replace(/\{id\}/g,e.id),m.autosave_interval=t(m.autosave_interval,"30s"),m.autosave_retention=t(m.autosave_retention,"20m"),e.addButton("restoredraft",{title:"Restore last draft",onclick:u,onPostRender:s}),e.addMenuItem("restoredraft",{text:"Restore last draft",onclick:u,onPostRender:s,context:"file"}),e.settings.autosave_restore_when_empty!==!1&&(e.on("init",function(){n()&&f()&&o()}),e.on("saveContent",function(){a()})),window.onbeforeunload=tinymce._beforeUnloadHandler,this.hasDraft=n,this.storeDraft=r,this.restoreDraft=o,this.removeDraft=a,this.isEmpty=f});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/code/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("code",function(e){function o(){var o=e.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:e.getParam("code_dialog_width",600),minHeight:e.getParam("code_dialog_height",Math.min(tinymce.DOM.getViewPort().h-200,500)),spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(o){e.focus(),e.undoManager.transact(function(){e.setContent(o.data.code)}),e.selection.setCursorLocation(),e.nodeChanged()}});o.find("#code").value(e.getContent({source_view:!0}))}e.addCommand("mceCodeEditor",o),e.addButton("code",{icon:"code",tooltip:"Source code",onclick:o}),e.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:o})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/colorpicker/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("colorpicker",function(e){function n(n,a){function i(e){var n=new tinymce.util.Color(e),a=n.toRgb();l.fromJSON({r:a.r,g:a.g,b:a.b,hex:n.toHex().substr(1)}),t(n.toHex())}function t(e){l.find("#preview")[0].getEl().style.background=e}var l=e.windowManager.open({title:"Color",items:{type:"container",layout:"flex",direction:"row",align:"stretch",padding:5,spacing:10,items:[{type:"colorpicker",value:a,onchange:function(){var e=this.rgb();l&&(l.find("#r").value(e.r),l.find("#g").value(e.g),l.find("#b").value(e.b),l.find("#hex").value(this.value().substr(1)),t(this.value()))}},{type:"form",padding:0,labelGap:5,defaults:{type:"textbox",size:7,value:"0",flex:1,spellcheck:!1,onchange:function(){var e,n,a=l.find("colorpicker")[0];return e=this.name(),n=this.value(),"hex"==e?(n="#"+n,i(n),void a.value(n)):(n={r:l.find("#r").value(),g:l.find("#g").value(),b:l.find("#b").value()},a.value(n),void i(n))}},items:[{name:"r",label:"R",autofocus:1},{name:"g",label:"G"},{name:"b",label:"B"},{name:"hex",label:"#",value:"000000"},{name:"preview",type:"container",border:1}]}]},onSubmit:function(){n("#"+this.toJSON().hex)}});i(a)}e.settings.color_picker_callback||(e.settings.color_picker_callback=n)});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/contextmenu/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("contextmenu",function(e){var t,n=e.settings.contextmenu_never_use_native;e.on("contextmenu",function(o){var i,c=e.getDoc();if(!o.ctrlKey||n){if(o.preventDefault(),tinymce.Env.mac&&tinymce.Env.webkit&&2==o.button&&c.caretRangeFromPoint&&e.selection.setRng(c.caretRangeFromPoint(o.x,o.y)),i=e.settings.contextmenu||"link image inserttable | cell row column deletetable",t)t.show();else{var a=[];tinymce.each(i.split(/[ ,]/),function(t){var n=e.menuItems[t];"|"==t&&(n={text:t}),n&&(n.shortcut="",a.push(n))});for(var r=0;r
",tinymce.each(a,function(a){var i=e+"/img/smiley-"+a+".gif";t+=' '}),t+=""}),t+=""}var i=[["cool","cry","embarassed","foot-in-mouth"],["frown","innocent","kiss","laughing"],["money-mouth","sealed","smile","surprised"],["tongue-out","undecided","wink","yell"]];t.addButton("emoticons",{type:"panelbutton",panel:{role:"application",autohide:!0,html:a,onclick:function(e){var a=t.dom.getParent(e.target,"a");a&&(t.insertContent(' '),this.hide())}},tooltip:"Emoticons"})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/example/dialog.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Custom dialog
5 | Input some text:
6 | Close window
7 |
8 |
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/example/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("example",function(t,e){t.addButton("example",{text:"My button",icon:!1,onclick:function(){t.windowManager.open({title:"Example plugin",body:[{type:"textbox",name:"title",label:"Title"}],onsubmit:function(e){t.insertContent("Title: "+e.data.title)}})}}),t.addMenuItem("example",{text:"Example plugin",context:"tools",onclick:function(){t.windowManager.open({title:"TinyMCE site",url:e+"/dialog.html",width:600,height:400,buttons:[{text:"Insert",onclick:function(){var e=t.windowManager.getWindows()[0];t.insertContent(e.getContentWindow().document.getElementById("content").value),e.close()}},{text:"Close",onclick:"close"}]})}})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/example_dependency/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("example_dependency",function(){},["example"]);
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/fullscreen/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("fullscreen",function(e){function t(){var e,t,n=window,i=document,l=i.body;return l.offsetWidth&&(e=l.offsetWidth,t=l.offsetHeight),n.innerWidth&&n.innerHeight&&(e=n.innerWidth,t=n.innerHeight),{w:e,h:t}}function n(){function n(){d.setStyle(a,"height",t().h-(h.clientHeight-a.clientHeight))}var u,h,a,f,m=document.body,g=document.documentElement;s=!s,h=e.getContainer(),u=h.style,a=e.getContentAreaContainer().firstChild,f=a.style,s?(i=f.width,l=f.height,f.width=f.height="100%",c=u.width,o=u.height,u.width=u.height="",d.addClass(m,"mce-fullscreen"),d.addClass(g,"mce-fullscreen"),d.addClass(h,"mce-fullscreen"),d.bind(window,"resize",n),n(),r=n):(f.width=i,f.height=l,c&&(u.width=c),o&&(u.height=o),d.removeClass(m,"mce-fullscreen"),d.removeClass(g,"mce-fullscreen"),d.removeClass(h,"mce-fullscreen"),d.unbind(window,"resize",r)),e.fire("FullscreenStateChanged",{state:s})}var i,l,r,c,o,s=!1,d=tinymce.DOM;return e.settings.inline?void 0:(e.on("init",function(){e.addShortcut("Ctrl+Alt+F","",n)}),e.on("remove",function(){r&&d.unbind(window,"resize",r)}),e.addCommand("mceFullScreen",n),e.addMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Ctrl+Alt+F",selectable:!0,onClick:n,onPostRender:function(){var t=this;e.on("FullscreenStateChanged",function(e){t.active(e.state)})},context:"view"}),e.addButton("fullscreen",{tooltip:"Fullscreen",shortcut:"Ctrl+Alt+F",onClick:n,onPostRender:function(){var t=this;e.on("FullscreenStateChanged",function(e){t.active(e.state)})}}),{isFullscreen:function(){return s}})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/hr/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("hr",function(n){n.addCommand("InsertHorizontalRule",function(){n.execCommand("mceInsertContent",!1," ")}),n.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),n.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/importcss/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("importcss",function(t){function e(t){return"string"==typeof t?function(e){return-1!==e.indexOf(t)}:t instanceof RegExp?function(e){return t.test(e)}:t}function n(e,n){function i(t,e){var c,o=t.href;if(o&&n(o,e)){s(t.imports,function(t){i(t,!0)});try{c=t.cssRules||t.rules}catch(a){}s(c,function(t){t.styleSheet?i(t.styleSheet,!0):t.selectorText&&s(t.selectorText.split(","),function(t){r.push(tinymce.trim(t))})})}}var r=[],c={};s(t.contentCSS,function(t){c[t]=!0}),n||(n=function(t,e){return e||c[t]});try{s(e.styleSheets,function(t){i(t)})}catch(o){}return r}function i(e){var n,i=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(e);if(i){var r=i[1],s=i[2].substr(1).split(".").join(" "),c=tinymce.makeMap("a,img");return i[1]?(n={title:e},t.schema.getTextBlockElements()[r]?n.block=r:t.schema.getBlockElements()[r]||c[r.toLowerCase()]?n.selector=r:n.inline=r):i[2]&&(n={inline:"span",title:e.substr(1),classes:s}),t.settings.importcss_merge_classes!==!1?n.classes=s:n.attributes={"class":s},n}}var r=this,s=tinymce.each;t.on("renderFormatsMenu",function(c){var o=t.settings,a={},l=o.importcss_selector_converter||i,f=e(o.importcss_selector_filter),m=c.control;t.settings.importcss_append||m.items().remove();var u=[];tinymce.each(o.importcss_groups,function(t){t=tinymce.extend({},t),t.filter=e(t.filter),u.push(t)}),s(n(c.doc||t.getDoc(),e(o.importcss_file_filter)),function(e){if(-1===e.indexOf(".mce-")&&!a[e]&&(!f||f(e))){var n,i=l.call(r,e);if(i){var s=i.name||tinymce.DOM.uniqueId();if(u)for(var c=0;c'+n+"";var i=e.dom.getParent(e.selection.getStart(),"time");if(i)return void e.dom.setOuterHTML(i,n)}e.insertContent(n)}var n,r,i="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),d="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),c="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),m="January February March April May June July August September October November December".split(" "),u=[];e.addCommand("mceInsertDate",function(){a(e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d")))}),e.addCommand("mceInsertTime",function(){a(e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S")))}),e.addButton("insertdatetime",{type:"splitbutton",title:"Insert date/time",onclick:function(){a(n||r)},menu:u}),tinymce.each(e.settings.insertdatetime_formats||["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"],function(e){r||(r=e),u.push({text:t(e),onclick:function(){n=e,a(e)}})}),e.addMenuItem("insertdatetime",{icon:"date",text:"Insert date/time",menu:u,context:"insert"})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/media/moxieplayer.swf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/plugins/media/moxieplayer.swf
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/nonbreaking/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("nonbreaking",function(n){var e=n.getParam("nonbreaking_force_tab");if(n.addCommand("mceNonBreaking",function(){n.insertContent(n.plugins.visualchars&&n.plugins.visualchars.state?' ':" "),n.dom.setAttrib(n.dom.select("span.mce-nbsp"),"data-mce-bogus","1")}),n.addButton("nonbreaking",{title:"Nonbreaking space",cmd:"mceNonBreaking"}),n.addMenuItem("nonbreaking",{text:"Nonbreaking space",cmd:"mceNonBreaking",context:"insert"}),e){var a=+e>1?+e:3;n.on("keydown",function(e){if(9==e.keyCode){if(e.shiftKey)return;e.preventDefault();for(var t=0;a>t;t++)n.execCommand("mceNonBreaking")}})}});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/pagebreak/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("pagebreak",function(e){var a="mce-pagebreak",t=e.getParam("pagebreak_separator",""),n=new RegExp(t.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi"),r=' ';e.addCommand("mcePageBreak",function(){e.insertContent(e.settings.pagebreak_split_block?""+r+"
":r)}),e.addButton("pagebreak",{title:"Page break",cmd:"mcePageBreak"}),e.addMenuItem("pagebreak",{text:"Page break",icon:"pagebreak",cmd:"mcePageBreak",context:"insert"}),e.on("ResolveName",function(t){"IMG"==t.target.nodeName&&e.dom.hasClass(t.target,a)&&(t.name="pagebreak")}),e.on("click",function(t){t=t.target,"IMG"===t.nodeName&&e.dom.hasClass(t,a)&&e.selection.select(t)}),e.on("BeforeSetContent",function(e){e.content=e.content.replace(n,r)}),e.on("PreInit",function(){e.serializer.addNodeFilter("img",function(a){for(var n,r,c=a.length;c--;)if(n=a[c],r=n.attr("class"),r&&-1!==r.indexOf("mce-pagebreak")){var o=n.parent;if(e.schema.getBlockElements()[o.name]&&e.settings.pagebreak_split_block){o.type=3,o.value=t,o.raw=!0,n.remove();continue}n.type=3,n.value=t,n.raw=!0}})})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/preview/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("preview",function(e){var t=e.settings,i=!tinymce.Env.ie;e.addCommand("mcePreview",function(){e.windowManager.open({title:"Preview",width:parseInt(e.getParam("plugin_preview_width","650"),10),height:parseInt(e.getParam("plugin_preview_height","500"),10),html:'",buttons:{text:"Close",onclick:function(){this.parent().parent().close()}},onPostRender:function(){var n,a="";a+=' ',tinymce.each(e.contentCSS,function(t){a+=' '});var r=t.body_id||"tinymce";-1!=r.indexOf("=")&&(r=e.getParam("body_id","","hash"),r=r[e.id]||r);var d=t.body_class||"";-1!=d.indexOf("=")&&(d=e.getParam("body_class","","hash"),d=d[e.id]||"");var o=e.settings.directionality?' dir="'+e.settings.directionality+'"':"";if(n=""+a+'"+e.getContent()+"",i)this.getEl("body").firstChild.src="data:text/html;charset=utf-8,"+encodeURIComponent(n);else{var s=this.getEl("body").firstChild.contentWindow.document;s.open(),s.write(n),s.close()}}})}),e.addButton("preview",{title:"Preview",cmd:"mcePreview"}),e.addMenuItem("preview",{text:"Preview",cmd:"mcePreview",context:"view"})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/print/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("print",function(t){t.addCommand("mcePrint",function(){t.getWin().print()}),t.addButton("print",{title:"Print",cmd:"mcePrint"}),t.addShortcut("Ctrl+P","","mcePrint"),t.addMenuItem("print",{text:"Print",cmd:"mcePrint",icon:"print",shortcut:"Ctrl+P",context:"file"})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/save/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("save",function(e){function a(){var a;return a=tinymce.DOM.getParent(e.id,"form"),!e.getParam("save_enablewhendirty",!0)||e.isDirty()?(tinymce.triggerSave(),e.getParam("save_onsavecallback")?void(e.execCallback("save_onsavecallback",e)&&(e.startContent=tinymce.trim(e.getContent({format:"raw"})),e.nodeChanged())):void(a?(e.isNotDirty=!0,(!a.onsubmit||a.onsubmit())&&("function"==typeof a.submit?a.submit():e.windowManager.alert("Error: Form submit field collision.")),e.nodeChanged()):e.windowManager.alert("Error: No form element found."))):void 0}function n(){var a=tinymce.trim(e.startContent);return e.getParam("save_oncancelcallback")?void e.execCallback("save_oncancelcallback",e):(e.setContent(a),e.undoManager.clear(),void e.nodeChanged())}function t(){var a=this;e.on("nodeChange",function(){a.disabled(e.getParam("save_enablewhendirty",!0)&&!e.isDirty())})}e.addCommand("mceSave",a),e.addCommand("mceCancel",n),e.addButton("save",{icon:"save",text:"Save",cmd:"mceSave",disabled:!0,onPostRender:t}),e.addButton("cancel",{text:"Cancel",icon:!1,cmd:"mceCancel",disabled:!0,onPostRender:t}),e.addShortcut("ctrl+s","","mceSave")});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/tabfocus/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("tabfocus",function(e){function n(e){9!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey||e.preventDefault()}function t(n){function t(n){function t(e){return"BODY"===e.nodeName||"hidden"!=e.type&&"none"!=e.style.display&&"hidden"!=e.style.visibility&&t(e.parentNode)}function r(e){return e.tabIndex||"INPUT"==e.nodeName||"TEXTAREA"==e.nodeName}function c(e){return!r(e)&&"-1"!=e.getAttribute("tabindex")&&t(e)}if(u=i.select(":input:enabled,*[tabindex]:not(iframe)"),o(u,function(n,t){return n.id==e.id?(a=t,!1):void 0}),n>0){for(d=a+1;d=0;d--)if(c(u[d]))return u[d];return null}var a,u,c,d;if(!(9!==n.keyCode||n.ctrlKey||n.altKey||n.metaKey)&&(c=r(e.getParam("tab_focus",e.getParam("tabfocus_elements",":prev,:next"))),1==c.length&&(c[1]=c[0],c[0]=":prev"),u=n.shiftKey?":prev"==c[0]?t(-1):i.get(c[0]):":next"==c[1]?t(1):i.get(c[1]))){var y=tinymce.get(u.id||u.name);u.id&&y?y.focus():window.setTimeout(function(){tinymce.Env.webkit||window.focus(),u.focus()},10),n.preventDefault()}}var i=tinymce.DOM,o=tinymce.each,r=tinymce.explode;e.on("init",function(){e.inline&&tinymce.DOM.setAttrib(e.getBody(),"tabIndex",null)}),e.on("keyup",n),tinymce.Env.gecko?e.on("keypress keydown",t):e.on("keydown",t)});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/visualblocks/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("visualblocks",function(e,s){function o(){var s=this;s.active(a),e.on("VisualBlocks",function(){s.active(e.dom.hasClass(e.getBody(),"mce-visualblocks"))})}var l,t,a;window.NodeList&&(e.addCommand("mceVisualBlocks",function(){var o,c=e.dom;l||(l=c.uniqueId(),o=c.create("link",{id:l,rel:"stylesheet",href:s+"/css/visualblocks.css"}),e.getDoc().getElementsByTagName("head")[0].appendChild(o)),e.on("PreviewFormats AfterPreviewFormats",function(s){a&&c.toggleClass(e.getBody(),"mce-visualblocks","afterpreviewformats"==s.type)}),c.toggleClass(e.getBody(),"mce-visualblocks"),a=e.dom.hasClass(e.getBody(),"mce-visualblocks"),t&&t.active(c.hasClass(e.getBody(),"mce-visualblocks")),e.fire("VisualBlocks")}),e.addButton("visualblocks",{title:"Show blocks",cmd:"mceVisualBlocks",onPostRender:o}),e.addMenuItem("visualblocks",{text:"Show blocks",cmd:"mceVisualBlocks",onPostRender:o,selectable:!0,context:"view",prependToContext:!0}),e.on("init",function(){e.settings.visualblocks_default_state&&e.execCommand("mceVisualBlocks",!1,null,{skip_focus:!0})}),e.on("remove",function(){e.dom.removeClass(e.getBody(),"mce-visualblocks")}))});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/visualchars/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("visualchars",function(e){function a(a){var t,s,i,r,c,d,l=e.getBody(),m=e.selection;if(n=!n,o.state=n,e.fire("VisualChars",{state:n}),a&&(d=m.getBookmark()),n)for(s=[],tinymce.walk(l,function(e){3==e.nodeType&&e.nodeValue&&-1!=e.nodeValue.indexOf(" ")&&s.push(e)},"childNodes"),i=0;i$1'),c=e.dom.create("div",null,r);t=c.lastChild;)e.dom.insertAfter(t,s[i]);e.dom.remove(s[i])}else for(s=e.dom.select("span.mce-nbsp",l),i=s.length-1;i>=0;i--)e.dom.remove(s[i],1);m.moveToBookmark(d)}function t(){var a=this;e.on("VisualChars",function(e){a.active(e.state)})}var n,o=this;e.addCommand("mceVisualChars",a),e.addButton("visualchars",{title:"Show invisible characters",cmd:"mceVisualChars",onPostRender:t}),e.addMenuItem("visualchars",{text:"Show invisible characters",cmd:"mceVisualChars",onPostRender:t,selectable:!0,context:"view",prependToContext:!0}),e.on("beforegetcontent",function(e){n&&"raw"!=e.format&&!e.draft&&(n=!0,a(!1))})});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/plugins/wordcount/plugin.min.js:
--------------------------------------------------------------------------------
1 | tinymce.PluginManager.add("wordcount",function(e){function t(){e.theme.panel.find("#wordcount").text(["Words: {0}",a.getCount()])}var n,o,a=this;n=e.getParam("wordcount_countregex",/[\w\u2019\x27\-\u00C0-\u1FFF]+/g),o=e.getParam("wordcount_cleanregex",/[0-9.(),;:!?%#$?\x27\x22_+=\\\/\-]*/g),e.on("init",function(){var n=e.theme.panel&&e.theme.panel.find("#statusbar")[0];n&&window.setTimeout(function(){n.insert({type:"label",name:"wordcount",text:["Words: {0}",a.getCount()],classes:"wordcount",disabled:e.settings.readonly},0),e.on("setcontent beforeaddundo",t),e.on("keyup",function(e){32==e.keyCode&&t()})},0)}),a.getCount=function(){var t=e.getContent({format:"raw"}),a=0;if(t){t=t.replace(/\.\.\./g," "),t=t.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," "),t=t.replace(/(\w+)(?[a-z0-9]+;)+(\w+)/i,"$1$3").replace(/&.+?;/g," "),t=t.replace(o,"");var r=t.match(n);r&&(a=r.length)}return a}});
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/content.inline.min.css:
--------------------------------------------------------------------------------
1 | .mce-object{border:1px dotted #3A3A3A;background:#d5d5d5 url(img/object.gif) no-repeat center}.mce-pagebreak{cursor:default;display:block;border:0;width:100%;height:5px;border:1px dashed #666;margin-top:15px;page-break-before:always}@media print{.mce-pagebreak{border:0px}}.mce-item-anchor{cursor:default;display:inline-block;-webkit-user-select:all;-webkit-user-modify:read-only;-moz-user-select:all;-moz-user-modify:read-only;user-select:all;user-modify:read-only;width:9px !important;height:9px !important;border:1px dotted #3A3A3A;background:#d5d5d5 url(img/anchor.gif) no-repeat center}.mce-nbsp{background:#AAA}hr{cursor:default}.mce-match-marker{background:#AAA;color:#fff}.mce-match-marker-selected{background:#3399ff;color:#fff}.mce-spellchecker-word{border-bottom:2px solid #F00;cursor:default}.mce-spellchecker-grammar{border-bottom:2px solid #008000;cursor:default}.mce-item-table,.mce-item-table td,.mce-item-table th,.mce-item-table caption{border:1px dashed #BBB}td.mce-item-selected,th.mce-item-selected{background-color:#3399ff !important}.mce-edit-focus{outline:1px dotted #333}
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/content.min.css:
--------------------------------------------------------------------------------
1 | body{background-color:#FFFFFF;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;scrollbar-3dlight-color:#F0F0EE;scrollbar-arrow-color:#676662;scrollbar-base-color:#F0F0EE;scrollbar-darkshadow-color:#DDDDDD;scrollbar-face-color:#E0E0DD;scrollbar-highlight-color:#F0F0EE;scrollbar-shadow-color:#F0F0EE;scrollbar-track-color:#F5F5F5}td,th{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px}.mce-object{border:1px dotted #3A3A3A;background:#d5d5d5 url(img/object.gif) no-repeat center}.mce-pagebreak{cursor:default;display:block;border:0;width:100%;height:5px;border:1px dashed #666;margin-top:15px;page-break-before:always}@media print{.mce-pagebreak{border:0px}}.mce-item-anchor{cursor:default;display:inline-block;-webkit-user-select:all;-webkit-user-modify:read-only;-moz-user-select:all;-moz-user-modify:read-only;user-select:all;user-modify:read-only;width:9px !important;height:9px !important;border:1px dotted #3A3A3A;background:#d5d5d5 url(img/anchor.gif) no-repeat center}.mce-nbsp{background:#AAA}hr{cursor:default}.mce-match-marker{background:#AAA;color:#fff}.mce-match-marker-selected{background:#3399ff;color:#fff}.mce-spellchecker-word{border-bottom:2px solid #F00;cursor:default}.mce-spellchecker-grammar{border-bottom:2px solid #008000;cursor:default}.mce-item-table,.mce-item-table td,.mce-item-table th,.mce-item-table caption{border:1px dashed #BBB}td.mce-item-selected,th.mce-item-selected{background-color:#3399ff !important}.mce-edit-focus{outline:1px dotted #333}
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/fonts/readme.md:
--------------------------------------------------------------------------------
1 | Icons are generated and provided by the http://icomoon.io service.
2 |
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce-small.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce-small.eot
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce-small.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce-small.ttf
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce-small.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce-small.woff
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce.eot
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce.ttf
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/skins/lightgray/fonts/tinymce.woff
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/img/anchor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/skins/lightgray/img/anchor.gif
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/img/loader.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/skins/lightgray/img/loader.gif
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/img/object.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/skins/lightgray/img/object.gif
--------------------------------------------------------------------------------
/Web Interface/js/tinymce/skins/lightgray/img/trans.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pushkar8723/aurora/44124fb159aaec934dac829cb211b2a4c2c6d33f/Web Interface/js/tinymce/skins/lightgray/img/trans.gif
--------------------------------------------------------------------------------
/Web Interface/pdf.php:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
$result[name] ";
25 | $statement = stripslashes($result["statement"]);
26 | $statement = preg_replace("/\n/", "
", $statement);
27 | $statement = preg_replace("/
/", "
", $statement);
28 | echo " $statement
29 |
Time Limit : $result[timelimit] Second(s)
Score : $result[score] Point(s)
Input File Limit : $result[maxfilesize] Bytes
Languages Allowed : $result[languages]
";
30 | }
31 | ?>
32 |
33 |
34 |
35 |
41 |
--------------------------------------------------------------------------------
/Web Interface/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Allow: /
3 | Allow: /problems/
4 | Allow: /submissions/
5 | Allow: /rankings/
6 | Allow: /contests/
--------------------------------------------------------------------------------
/Web Interface/syntax-highlighter/shBrushJScript.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (July 02 2010)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2010 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21 |
22 | function Brush()
23 | {
24 | var keywords = 'break case catch continue ' +
25 | 'default delete do else false ' +
26 | 'for function if in instanceof ' +
27 | 'new null return super switch ' +
28 | 'this throw true try typeof var while with'
29 | ;
30 |
31 | var r = SyntaxHighlighter.regexLib;
32 |
33 | this.regexList = [
34 | { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
35 | { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
36 | { regex: r.singleLineCComments, css: 'comments' }, // one line comments
37 | { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
38 | { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
39 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
40 | ];
41 |
42 | this.forHtmlScript(r.scriptScriptTags);
43 | };
44 |
45 | Brush.prototype = new SyntaxHighlighter.Highlighter();
46 | Brush.aliases = ['js', 'jscript', 'javascript'];
47 |
48 | SyntaxHighlighter.brushes.JScript = Brush;
49 |
50 | // CommonJS
51 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
52 | })();
53 |
--------------------------------------------------------------------------------
/Web Interface/syntax-highlighter/shBrushJava.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (July 02 2010)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2010 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21 |
22 | function Brush()
23 | {
24 | var keywords = 'abstract assert boolean break byte case catch char class const ' +
25 | 'continue default do double else enum extends ' +
26 | 'false final finally float for goto if implements import ' +
27 | 'instanceof int interface long native new null ' +
28 | 'package private protected public return ' +
29 | 'short static strictfp super switch synchronized this throw throws true ' +
30 | 'transient try void volatile while';
31 |
32 | this.regexList = [
33 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
34 | { regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
35 | { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
36 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
37 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
38 | { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
39 | { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
40 | { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
41 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
42 | ];
43 |
44 | this.forHtmlScript({
45 | left : /(<|<)%[@!=]?/g,
46 | right : /%(>|>)/g
47 | });
48 | };
49 |
50 | Brush.prototype = new SyntaxHighlighter.Highlighter();
51 | Brush.aliases = ['java'];
52 |
53 | SyntaxHighlighter.brushes.Java = Brush;
54 |
55 | // CommonJS
56 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
57 | })();
58 |
--------------------------------------------------------------------------------
/Web Interface/syntax-highlighter/shBrushPascal.js:
--------------------------------------------------------------------------------
1 | ;(function()
2 | {
3 | // CommonJS
4 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
5 |
6 | function Brush()
7 | {
8 | var functions = 'read readln writeln round trunc chr ord frac int hi lo swap abs odd sqr sqrt sin cos arctan' +
9 | 'ln exp strconcat strdelete strinsert strlen strscan strsize substr delete insert copy length pos str' +
10 | 'val upcase address ofs makepointer addr rawpointer ptr peek random chdir erase getdir mkdir rename sizeof delay halt';
11 | var datatypes = 'boolean char integer string';
12 | var keywords = "and array begin case const div do downto else end file for forward " +
13 | "function goto if in label mod nil not of or packed procedure " +
14 | "program record repeat set then to type until var while with";
15 | this.regexList = [
16 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
17 | { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments
18 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
19 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
20 | { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
21 | { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
22 | { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
23 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
24 | ];
25 |
26 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
27 | };
28 |
29 | Brush.prototype = new SyntaxHighlighter.Highlighter();
30 | Brush.aliases = ['pascal', 'pas'];
31 |
32 | SyntaxHighlighter.brushes.Pascal = Brush;
33 |
34 | // CommonJS
35 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
36 | })();
37 |
--------------------------------------------------------------------------------
/Web Interface/syntax-highlighter/shBrushPlain.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (July 02 2010)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2010 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;
18 | (function()
19 | {
20 | // CommonJS
21 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
22 | function Brush()
23 | {
24 | this.regexList = [
25 | ];
26 | }
27 | ;
28 |
29 | Brush.prototype = new SyntaxHighlighter.Highlighter();
30 | Brush.aliases = ['text', 'plain'];
31 |
32 | SyntaxHighlighter.brushes.Plain = Brush;
33 |
34 | // CommonJS
35 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
36 | })();
37 |
--------------------------------------------------------------------------------
/conf/000-default.conf:
--------------------------------------------------------------------------------
1 |