Files
Graphite/frontend-svelte/assets/icon-16px-solid/zoom-reset.svg
T
Keavon ChambersandLocria Cyber 5619d44300 Port frontend from Vue to Svelte (WIP in separate folder, many bugs) (#964)
* Make `tauri build` just work

* Move folder: frontend/wasm -> wasm

* Create SvelteKit project with 'npx create-svelte'

* Move wasm-communication into seperate npm package

* Use wasm-pack directly and pack package.json

* Got it to work

* Add primitive build script for wasm npm module

* Fix wasm build script (python)

* Clean up glue code

* Rewrite wasm build script in node.js

* Add serde-reflection to trace types

* Add traced types

* Generate typescript (.d.ts) from Rust types

* Update .d.ts

* Finalize TS types

* Add script to update .d.ts

* Add watch command to build wasm-bindgen

* Make wasm work again

* Add sass; fix build script for windows

* Describe requirement for wasm-pack

* Add license

* Copy and reorganize vue components

* translate LayoutCol.vue

* Split app.scss into pieces

* Translate LayoutRow.svelte

* Rename scss files

* Fix compile issues on Windows

* WIP port TitleBar

* Support classes for LayoutCol/Row

* Restructure based on Vue codebase

* Port all components in window folder

* Port FloatingMenu

* Port Document panel component

* Update readme after folder move

* Update typegen: print discriminant by default

* Update typegen: Merge from branch 'tailwind' 4f14fedb

Fixes bigint & bytes

* Made Vue/webpack/eslint to accept wasm package at new location

This is quite a hack.

Those two packages are both named the same. Yes, it's an npm package inside another npm package.

- frontend/src/wasm-communication/
- frontend-svelte/glue/

'wasm/pkg/index.js' imports the correct one registered when linking.

* Port LayerTree

* Port NodeGraph

* Port Properties

* Port components in /floating-menus

* Finish porting all Vue -> Svelte components

* Change import prefix

* Revert type generation

* Revert moved wasm folder

* Revert all of @locriacyber's work on this branch

- Remove Vite and restore Webpack
- Remove SvelteKit
- Remove everything except the components I ported to Svelte
- Restore all frontend files from Vue code, now altered for Svelte

* Convert Vue's 'reactive' and 'provide' to Svelte's stores and contexts

* Fix event emitting and bi-di data flow

* Undo removal of 'update:' events

* Fix 'update:' event dispatching

* Fix usage in parent of bi-di component props

* Fix component typing, more progress towards no errors

* The page builds and opens!

* Add loading spinner and remove postcss dependency

* Make the basics of document editing work

* Fix rebase history

Co-authored-by: Locria Cyber <74560659+locriacyber@users.noreply.github.com>
2023-01-13 01:05:20 -08:00

6 lines
586 B
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<polygon points="0,6.5 2.9,11.5 5.7,6.5" />
<path d="M8.2,12.6c-0.2,0-0.4,0-0.6,0c-0.9-0.1-1.8-0.4-2.6-0.8l0.7-1.2c0.6,0.4,1.3,0.6,2,0.6c1.3,0.1,2.6-0.3,3.6-1.1s1.6-2,1.7-3.3c0.2-2.7-1.8-5-4.4-5.3C7.3,1.3,6.1,1.7,5.1,2.6c-1,0.8-1.6,2-1.7,3.3c0,0.5,0,1,0.1,1.5L2.1,7.7c-0.2-0.7-0.2-1.3-0.2-2c0.2-1.7,0.9-3.2,2.2-4.3C5.5,0.4,7.1-0.1,8.8,0c3.5,0.3,6,3.3,5.7,6.8c-0.1,1.7-0.9,3.2-2.2,4.3C11.1,12.1,9.7,12.6,8.2,12.6z" />
<path d="M15.8,14.4l-3.3-4L11,11.7l3.3,4c0.3,0.4,1,0.5,1.4,0.1C16.1,15.4,16.1,14.8,15.8,14.4z" />
</svg>