Skip to content

Commit

Permalink
Organize wasm folders (#36)
Browse files Browse the repository at this point in the history
* Reorganize plantuml files

* Add basic pull request template
  • Loading branch information
sakirtemel authored Feb 1, 2023
1 parent fe353d5 commit 1d36229
Show file tree
Hide file tree
Showing 12,184 changed files with 23 additions and 8 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
15 changes: 15 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Why

_Issue link or the reason of the change_

# What

-

# Checklist

- [ ] Rendering on Preview tested:
- Basic rendering
- Stdlib rendering
- Rendering with refreshing the page after choosing an example
- [ ] Documentation is updated
6 changes: 3 additions & 3 deletions compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ ROOT_DIR=`pwd`
wget https://d3415aa6bfa4.leaningtech.com/cheerpj_linux_2.3.tar.gz -O - | tar -xz

# compile
rm $ROOT_DIR/compiled-jars/*
rm $ROOT_DIR/plantuml-wasm/plantuml-wasm.jar $ROOT_DIR/plantuml-wasm/plantuml-wasm.jar.js

cp $ROOT_DIR/source-jars/plantuml-wasm.jar $ROOT_DIR/compiled-jars
cp $ROOT_DIR/source-jars/plantuml-wasm.jar $ROOT_DIR/plantuml-wasm

cd $ROOT_DIR/compiled-jars
cd $ROOT_DIR/plantuml-wasm

$ROOT_DIR/cheerpj_2.3/cheerpjfy.py plantuml-wasm.jar

Expand Down
Empty file removed compiled-jars/.gitkeep
Empty file.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>PlantUML WASM</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<script src="https://cjrtnc.leaningtech.com/2.3/loader.js"></script>
<script src="assets/js/plantuml.js"></script>
<script src="plantuml-wasm/plantuml.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
<style>
.ts-control {
Expand Down Expand Up @@ -76,7 +76,7 @@ <h1 class="md:block font-bold text-sm md:text-xl text-center px-3 text-white" id

<script>
// load parameters
const pathname = window.location.pathname
const pathname = window.location.pathname.match(/^.*[\/]/)[0] // until the trailing slash, do not include the filename
const hashParams = window.location.hash.substr(1).split('&').reduce(function (res, item) {
var parts = item.split('=')
res[parts[0]] = parts[1]
Expand Down Expand Up @@ -129,7 +129,7 @@ <h1 class="md:block font-bold text-sm md:text-xl text-center px-3 text-white" id
debouncedRender()
})

const jarPath = "/app" + pathname + "compiled-jars"
const jarPath = "/app" + pathname + "plantuml-wasm"
plantuml.initialize(jarPath).then(() => debouncedRender())

const exampleFilesSelect = new TomSelect(
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions assets/js/plantuml.js → plantuml-wasm/plantuml.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 1d36229

Please sign in to comment.