Files
Graphite/frontend-svelte/assets/icon-16px-solid/graphite-logo.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

4 lines
1.3 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path d="M5.15,10.65L2.82,6.61c-0.1-0.16-0.05-0.36,0.1-0.46c0.16-0.1,0.36-0.05,0.46,0.1C3.39,6.25,3.39,6.26,3.4,6.27l2.33,4.04c0.1,0.16,0.05,0.36-0.1,0.46c-0.16,0.1-0.36,0.05-0.46-0.1C5.16,10.66,5.16,10.66,5.15,10.65 M15.7,14.6c0.02,0.2-0.06,0.4-0.2,0.54c-0.28,0.34-1.49,0.59-2.41,0.72c-0.61,0.09-1.22,0.13-1.83,0.14c-0.58-0.01-1.38-0.15-2.14-0.2c-1.07-0.07-4.63-0.2-5.85-0.19c-1.37,0.01-1.65-0.07-1.88-0.27c-0.09-0.08,0.69-0.47,2.34-0.6c4.01-0.33,7.55-0.37,8.76-0.31c0.49,0.02,0.97,0.11,1.43,0.26l-2.57-1.85c-0.21,0.14-0.47,0.22-0.72,0.22h-6c-0.48,0-0.92-0.25-1.15-0.67l-3-5.2c-0.24-0.41-0.24-0.92,0-1.33l3-5.2C3.7,0.25,4.14,0,4.62,0h6c0.48,0,0.92,0.25,1.16,0.67l2.21,3.83l0.79,1.36l0,0l0,0l0,0l0,0.01c0,0.01,0.01,0.01,0.01,0.02c0.09,0.17,0.15,0.35,0.16,0.54c0,0.03,0.69,7.5,0.75,8.12L15.7,14.6z M4.34,1.82L8.08,8.3c0.47-0.11,0.95-0.17,1.43-0.17l0.98-1.34l1.65-0.18c0.24-0.42,0.53-0.8,0.86-1.15l-2.22-3.84c-0.11-0.17-0.3-0.28-0.5-0.29H4.95c-0.2,0.01-0.39,0.12-0.5,0.29L4.34,1.82z M9.79,11.72l-2.06-1.48c-0.08-0.06-0.14-0.13-0.19-0.21l0,0L3.57,3.15L1.79,6.24c-0.09,0.18-0.09,0.4,0,0.58l2.67,4.62c0.11,0.17,0.3,0.28,0.5,0.29H9.79z M14.05,11.44l-0.47-4.73c-0.29,0.32-0.55,0.68-0.77,1.05l-1.65,0.18l-0.98,1.34c-0.44,0-0.87,0.05-1.3,0.14l3.86,2.77C12.96,11.69,13.49,11.38,14.05,11.44" />
</svg>