Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
feat: setup react app + ui toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
ByFishh committed Feb 4, 2024
1 parent 664d018 commit a06627c
Show file tree
Hide file tree
Showing 19 changed files with 4,803 additions and 7 deletions.
20 changes: 19 additions & 1 deletion toolchains/solidity/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,29 @@
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "sidepanel",
"title": "Osmium",
"icon": "assets/logo.png"
}
]
},
"views": {
"sidepanel": [
{
"type": "webview",
"id": "osmium.sidepanel",
"name": "Deploy/Interact"
}
]
},
"menus": {
"explorer/context": [
{
"when": "resourceLangId == solidity",
"command": "osmium.lint-sol-file",
"command": "osmium.format-sol-file",
"group": "7_modification"
}
]
Expand Down
18 changes: 18 additions & 0 deletions toolchains/solidity/extension/sidepanel/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions toolchains/solidity/extension/sidepanel/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
12 changes: 12 additions & 0 deletions toolchains/solidity/extension/sidepanel/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit a06627c

Please sign in to comment.