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

Revamp file system #97

Merged
merged 25 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0982c88
Revamp file system
rahulyadav-57 Aug 28, 2024
c61fb64
Render file tree and refactoring
rahulyadav-57 Aug 29, 2024
b902cf4
create, rename, move file and folder
rahulyadav-57 Aug 29, 2024
e82cb2c
fix: build error
rahulyadav-57 Aug 29, 2024
278b2cc
refactor: rename project hook
rahulyadav-57 Aug 30, 2024
edbd3e9
feat: implement file tabs management
rahulyadav-57 Aug 30, 2024
3b8d1cc
feat: refactor Editor to use new FS
rahulyadav-57 Sep 2, 2024
0f76321
feat: build and deploy project
rahulyadav-57 Sep 4, 2024
1fe5f4f
feat: save selected contract
rahulyadav-57 Sep 5, 2024
2171e6a
fix: useMemo for project change tracking
rahulyadav-57 Sep 6, 2024
5724649
feat: integrate with test cases
rahulyadav-57 Sep 6, 2024
f861de0
feat: integrate FS for FunC
rahulyadav-57 Sep 6, 2024
b620cf3
chore: update open file
rahulyadav-57 Sep 6, 2024
5c49eb9
chore: remove redundant
rahulyadav-57 Sep 8, 2024
6272299
feat: save global setting in FS
rahulyadav-57 Sep 9, 2024
d4dae96
refactor: clean up and remove redundant code
rahulyadav-57 Sep 9, 2024
d10f4c0
fix: setting file reload
rahulyadav-57 Sep 10, 2024
6e2739e
refactor: update project base directory to `/projects` for better str…
rahulyadav-57 Sep 10, 2024
a40c20a
feat: migrate old projects to new FS
rahulyadav-57 Sep 13, 2024
9ac16f1
create a 404 page
rahulyadav-57 Sep 13, 2024
56fa182
chore: handle error and show status
rahulyadav-57 Sep 13, 2024
2124dd3
chore: migration status check
rahulyadav-57 Sep 13, 2024
024c842
fix: project file reload
rahulyadav-57 Sep 15, 2024
f7d064d
Merge branch 'main' into upgrade-file-system
rahulyadav-57 Sep 16, 2024
fb468ca
fix: build error
rahulyadav-57 Sep 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = {
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-extra-non-null-assertion": "error",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-for-in-array": "error",
"no-implied-eval": "off",
"@typescript-eslint/no-implied-eval": "error",
Expand All @@ -71,7 +71,7 @@ module.exports = {
"@typescript-eslint/no-loss-of-precision": "error",
"@typescript-eslint/no-meaningless-void-operator": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-mixed-enums": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const nextConfig = withTM({
if (!options.isServer) {
config.plugins.push(
new MonacoWebpackPlugin({
languages: ["typescript"],
languages: ["typescript", "json"],
filename: "static/[name].worker.js",
}),
);
Expand Down
128 changes: 43 additions & 85 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dependencies": {
"@codingame/monaco-jsonrpc": "^0.3.1",
"@codingame/monaco-languageclient": "^0.17.0",
"@isomorphic-git/lightning-fs": "^4.6.0",
"@minoru/react-dnd-treeview": "^3.4.1",
"@monaco-editor/react": "^4.5.1",
"@orbs-network/ton-access": "^2.3.0",
Expand Down Expand Up @@ -51,7 +52,6 @@
"react-dnd": "^16.0.1",
"react-dom": "18.2.0",
"react-icons": "^4.8.0",
"react-joyride": "^2.5.4",
"react-markdown": "^9.0.1",
"react-split": "^2.0.14",
"react-syntax-highlighter": "^15.5.0",
Expand Down
3 changes: 0 additions & 3 deletions src/components/auth/TonAuth/TonAuth.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useAuthAction } from '@/hooks/auth.hooks';
import { ConnectedWallet, useTonConnectUI } from '@tonconnect/ui-react';
import { Button } from 'antd';
import Image from 'next/image';
Expand All @@ -8,7 +7,6 @@ import s from './TonAuth.module.scss';
const TonAuth: FC = () => {
const [tonConnector] = useTonConnectUI();
const [isConnected, setIsConnected] = useState(false);
const { updateAuth } = useAuthAction();

const handleConnectWallet = async () => {
try {
Expand All @@ -32,7 +30,6 @@ const TonAuth: FC = () => {
tonConnector.onStatusChange((wallet: ConnectedWallet | null) => {
if (!wallet || !tonConnector.connected) return;
setIsConnected(Boolean(wallet) || tonConnector.connected);
updateAuth({ walletAddress: wallet.account.address });
});
}, []);

Expand Down
32 changes: 0 additions & 32 deletions src/components/dashboard/Dashboard/Dashboard.module.scss

This file was deleted.

25 changes: 0 additions & 25 deletions src/components/dashboard/Dashboard/Dashboard.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/dashboard/Dashboard/index.ts

This file was deleted.

Loading
Loading