Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement offline SPX project compilation and web-based execution #6

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

motongxue
Copy link

No description provided.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compiled file, do not upload

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file name always lowercase, can be used _ separate.

// IndexedDBFileSystem is the implementation of a fsx.FileSystem
type IndexedDBFileSystem struct{}

func NewIndexedDBFileSystem() IndexedDBFileSystem {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NewFunc returns no pointer type.

@motongxue
Copy link
Author

refactor: Reconstruction code to solve the problems mentioned in previous PR #6

.gitignore Outdated

.vscode/
.idea/
main.wasm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.wasm

Copy link
Member

@visualfc visualfc Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_js 本身就代表了明确的在 GOOS=js 上工作,所以这里不需要 with.
如果 ifs 本身不需要其他的 filesytem 实现,那么文件名可以简单的命名为 ifs_js.go, 不建议使用 indexdbDB 这种大小写的文件名用法。

@motongxue
Copy link
Author

refactor: Reconstruction code to solve the problems mentioned in previous PR #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants