File tree 9 files changed +114
-18
lines changed
9 files changed +114
-18
lines changed Original file line number Diff line number Diff line change 1
- name : Rust
1
+ name : CI
2
2
3
3
on :
4
4
push :
5
5
branches :
6
- - main
7
- - ' 0\.*\.*'
8
- pull_request :
9
- branches :
10
- - main
6
+ - ' **'
11
7
12
8
jobs :
13
9
build :
@@ -47,15 +43,23 @@ jobs:
47
43
cd vue-playground
48
44
pnpm i
49
45
pnpm build
46
+
50
47
- name : Archive vue-skia-framework artifacts
51
48
uses : actions/upload-artifact@v3
52
49
with :
53
50
name : vue-skia-framework
54
51
path : |
55
- vue-skia-framework
56
- !node_modules
57
- - name : Archive vue-playground results
52
+ vue-skia-framework/lib
53
+ vue-skia-framework/type.d.ts
54
+ vue-skia-framework/main.js
55
+ vue-skia-framework/main.d.ts
56
+ vue-skia-framework/components
57
+ vue-skia-framework/LICENSE
58
+ vue-skia-framework/package-publish.json
59
+
60
+ - name : Archive soft-skia-wasm artifacts
58
61
uses : actions/upload-artifact@v3
59
62
with :
60
- name : vue-playground
61
- path : vue-playground/dist
63
+ name : soft-skia-wasm
64
+ path : |
65
+ soft-skia-wasm/pkg
Original file line number Diff line number Diff line change
1
+ name : Playground Use Latest
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - ' 0\.*\.*'
8
+ pull_request :
9
+ branches :
10
+ - main
11
+
12
+ jobs :
13
+ build :
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - uses : actions-rs/toolchain@v1
19
+ with :
20
+ toolchain : stable
21
+ components : clippy
22
+ override : true
23
+
24
+ - name : vue-playground
25
+ run : |
26
+ cd vue-playground
27
+ cp package-ci.json package.json
28
+ npm i
29
+ npm run build
30
+
31
+ - name : Archive vue-playground results
32
+ uses : actions/upload-artifact@v3
33
+ with :
34
+ name : vue-playground-use-latest
35
+ path : |
36
+ vue-playground
37
+ !vue-playground/node_modules
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " soft-skia-wasm"
3
- version = " 0.4 .0"
3
+ version = " 0.6 .0"
4
4
authors = [
" meloalright <[email protected] >" ]
5
5
edition = " 2018"
6
6
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " soft_skia"
3
- version = " 0.4 .0"
3
+ version = " 0.6 .0"
4
4
edition = " 2021"
5
5
description =" software rasterization skia binding"
6
6
license = " MIT"
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " vue-playground" ,
3
+ "version" : " 0.6.0" ,
4
+ "private" : true ,
5
+ "scripts" : {
6
+ "serve" : " vue-cli-service serve" ,
7
+ "build" : " vue-cli-service build" ,
8
+ "lint" : " vue-cli-service lint"
9
+ },
10
+ "dependencies" : {
11
+ "@uivjs/vue-github-corners" : " ^1.0.1" ,
12
+ "core-js" : " ^3.8.3" ,
13
+ "prism-themes" : " ^1.9.0" ,
14
+ "prismjs" : " ^1.29.0" ,
15
+ "vue" : " ^3.2.13" ,
16
+ "vue-live" : " ^2.5.4" ,
17
+ "vue-skia" : " latest"
18
+ },
19
+ "devDependencies" : {
20
+ "@types/node" : " ^20.5.0" ,
21
+ "@typescript-eslint/eslint-plugin" : " ^5.4.0" ,
22
+ "@typescript-eslint/parser" : " ^5.4.0" ,
23
+ "@vue/cli-plugin-babel" : " ~5.0.0" ,
24
+ "@vue/cli-plugin-eslint" : " ~5.0.0" ,
25
+ "@vue/cli-plugin-typescript" : " ~5.0.0" ,
26
+ "@vue/cli-service" : " ~5.0.0" ,
27
+ "@vue/eslint-config-typescript" : " ^9.1.0" ,
28
+ "eslint" : " ^7.32.0" ,
29
+ "eslint-config-prettier" : " ^8.3.0" ,
30
+ "eslint-plugin-prettier" : " ^4.0.0" ,
31
+ "eslint-plugin-vue" : " ^8.0.3" ,
32
+ "prettier" : " ^2.4.1" ,
33
+ "typescript" : " ~4.5.5" ,
34
+ "url-loader" : " ^4.1.1"
35
+ }
36
+ }
Original file line number Diff line number Diff line change 11
11
<p class =" description" >
12
12
This super cool editor is based on <em >vue-live</em > !
13
13
</p >
14
- <div class =" livebox" >
14
+ <div class =" livebox" v-if = " !debug " >
15
15
<div class =" hint" >
16
16
You can edit <a title =" copy code to clipboard" @click =" copy" >this</a >
17
17
<span >-></span >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const launch = function () {
10
10
const wasm = import ( "soft-skia-wasm/soft_skia_wasm.js" ) ;
11
11
wasm . then ( ( ssw ) => {
12
12
ssw . default ( ) . then ( ( ) => {
13
- global . ssw = ssw ;
13
+ window . ssw = ssw ;
14
14
while ( SSWInitialHelper . initialSucceedCallbackQueue . length ) {
15
15
SSWInitialHelper . initialSucceedCallbackQueue . pop ( ) ( ) ;
16
16
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " vue-skia" ,
3
+ "version" : " 0.0.6" ,
4
+ "files" : [
5
+ " lib" ,
6
+ " type.d.ts" ,
7
+ " main.js" ,
8
+ " main.d.ts" ,
9
+ " components" ,
10
+ " LICENSE"
11
+ ],
12
+ "license" : " MIT" ,
13
+ "main" : " ./main.js" ,
14
+ "module" : " ./main.js" ,
15
+ "dependencies" : {
16
+ "soft-skia-wasm" : " 0.6.0"
17
+ }
18
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-skia" ,
3
- "version" : " 0.0.4" ,
3
+ "version" : " 0.0.0" ,
4
+ "private" : " true" ,
4
5
"files" : [
5
6
" lib" ,
6
- " soft-skia-wasm/pkg " ,
7
+ " type.d.ts " ,
7
8
" main.js" ,
8
9
" main.d.ts" ,
9
10
" components" ,
10
11
" LICENSE"
11
12
],
12
13
"scripts" : {
13
- "build" : " rm -rf lib; tsc;cp main.js main.d.ts"
14
+ "build" : " rm -rf lib; tsc; cp main.js main.d.ts; cp type.ts type .d.ts"
14
15
},
15
16
"license" : " MIT" ,
16
17
"main" : " ./main.js" ,
You can’t perform that action at this time.
0 commit comments