Skip to content

Commit

Permalink
delete history
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Feb 18, 2025
0 parents commit 81592a7
Show file tree
Hide file tree
Showing 2,194 changed files with 1,433,139 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: [SimonDanisch]
patreon: # Replace with a single Patreon username
open_collective: simon-danisch
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
16 changes: 16 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CompatHelper
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
14 changes: 14 additions & 0 deletions .github/workflows/RegisterAction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: RegisterAction
on:
workflow_dispatch:
inputs:
version:
description: Version to register or component to bump
required: true
jobs:
register:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/RegisterAction@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
env:
JULIA_PKG_SERVER: ""
strategy:
fail-fast: false
matrix:
version:
- '1.6'
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
os:
- ubuntu-latest
arch:
- x64
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
with:
run: julia --project=@. -e "using Pkg; Pkg.update(); Pkg.test(coverage=true)"
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*.jl.*.cov
*.jl.cov
*.jl.mem
.DS_Store
/Manifest.toml
/dev/
/js_dependencies/session_temp_data/
/examples/jsserve_demo/exported/*
yarn.lock
package.json
node_modules
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2019 SimonDanisch <sdanisch@gmail.com>

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:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

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.
48 changes: 48 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name = "JSServe"
uuid = "824d6782-a2ef-11e9-3a09-e5662e0c26f9"
authors = ["SimonDanisch <sdanisch@gmail.com>"]
version = "1.2.9"

[deps]
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
Hyperscript = "47d2ed2b-36de-50cf-bf87-49c2cf4b8b91"
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
MsgPack = "99f44e22-a591-53d1-9472-aa23ef4bd671"
Observables = "510215fc-4207-5dde-b226-833fc4488ee2"
RelocatableFolders = "05181044-ff0b-4ac5-8273-598c1e38db00"
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
WebSockets = "104b5d7c-a370-577a-8038-80a2059c5097"
WidgetsBase = "eead4739-05f7-45a1-878c-cee36b57321c"

[compat]
CodecZlib = "0.7"
Colors = "0.12"
HTTP = "0.8, 0.9"
Hyperscript = "0.0.3, 0.0.4"
JSON3 = "1.0"
MsgPack = "1.1.0"
Observables = "0.5.1"
RelocatableFolders = "0.1, 0.2, 1"
Tables = "1"
WebSockets = "1.5"
WidgetsBase = "0.1"
julia = "1.3"

[extras]
Electron = "a1bb12fb-d4d1-54b4-b10a-ee7951ef7ad3"
ElectronDisplay = "d872a56f-244b-5cc9-b574-2017b5b909a8"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
URIParser = "30578b45-9adc-5946-b283-645ec420af67"

[targets]
test = ["URIParser", "Pkg", "Electron", "Random", "ElectronDisplay"]
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# JSServe

![CI](https://github.com/SimonDanisch/JSServe.jl/workflows/CI/badge.svg) [![Codecov](https://codecov.io/gh/SimonDanisch/JSServe.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/SimonDanisch/JSServe.jl)


Easy way of building interactive applications from Julia.
Uses Hyperscript to create HTML descriptions, and allows to execute Javascript & building of widgets. It also supports an offline mode, that exports your interactive app to a folder, and optionally records a statemap for all UI elements, so that a running Julia process isn't necessary anymore.

Have a look at the [examples](https://github.com/SimonDanisch/JSServe.jl/tree/master/examples), or check out the most outstanding ones:
## Markdown support
https://github.com/SimonDanisch/JSServe.jl/blob/master/examples/markdown.jl
![markdown_vol](https://user-images.githubusercontent.com/1010467/88916397-48513480-d266-11ea-8741-c5246f7f2395.gif)


## Renchon et al., Argonne National Laboratory, unpublished
https://simondanisch.github.io/WGLDemos/soil/
![soil](https://user-images.githubusercontent.com/1010467/88913137-aa0ea000-d260-11ea-81b6-3e71ff18ff03.gif)


## [Oceananigans](https://github.com/CliMA/Oceananigans.jl)
https://simondanisch.github.io/WGLDemos/oceananigans/
![ocean](https://user-images.githubusercontent.com/1010467/88912988-6d42a900-d260-11ea-8d87-1f3eea552d1b.gif)

## Smarthome dashboard:

https://github.com/SimonDanisch/SmartHomy/blob/master/web_app.jl
![image](https://user-images.githubusercontent.com/1010467/88916549-8d756680-d266-11ea-8d38-cd57640e1495.png)


## Interactive Notebook:

https://nextjournal.com/Lobatto/FitzHugh-Nagumo
![simulation](https://user-images.githubusercontent.com/1010467/88912834-2f458500-d260-11ea-9a49-5e17f769ff53.gif)


## Sponsors

<img src="https://github.com/JuliaPlots/Makie.jl/blob/master/assets/BMBF_gefoerdert_2017_en.jpg?raw=true" width="300"/>
Förderkennzeichen: 01IS10S27, 2020
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: off
16 changes: 16 additions & 0 deletions examples/JSModule.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const JSModule = (function () {
var shared_global = 2;

function get_global(){
return shared_global;
}

function set_global(val){
shared_global = val;
}

return {
get_global: get_global,
set_global: set_global
}
})();
Binary file added examples/assets/julia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions examples/basic_offline_makie.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using JSServe, WGLMakie, Makie, Colors, FileIO
using JSServe.DOM

function styled_slider(slider, value)
rows(slider, DOM.span(value, class="p-1"), class="w-64 p-2 items-center")
end

columns(args...; class="") = DOM.div(args..., class=class * " flex flex-col")
rows(args...; class="") = DOM.div(args..., class=class * " flex flex-row")
css_color(c) = "background-color: #$(hex(c))"

# get a somewhat interesting point cloud:
cat = decompose(Point3f, load(Makie.assetpath("cat.obj")))
# Create a little interactive app
app = App() do session
markersize = JSServe.Slider(range(1, stop=20, step=0.1))
hue_slider = JSServe.Slider(1:360)
color = map(hue_slider) do hue
HSV(hue, 0.5, 0.5)
end
plot = scatter(cat, markersize=markersize, color=color, figure=(resolution=(500, 500),))
m_slider = styled_slider(markersize, markersize.value)
color_swatch = DOM.div(class="h-6 w-6 p-1 rounded dropshadow", style=map(css_color, color))
h_slider = styled_slider(hue_slider, color_swatch)
sliders = rows(m_slider, h_slider)
dom = DOM.div(JSServe.Styling, JSServe.TailwindCSS, columns(sliders, plot))
return JSServe.record_states(session, dom)
end

mkdir("simple")
JSServe.export_standalone(app, "simple")
Loading

0 comments on commit 81592a7

Please sign in to comment.