Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ dist

# ignore .env files
.env

# ignore macOS metadata files
.DS_Store
50 changes: 27 additions & 23 deletions AdditionalToolbarButton/.gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
dist

.DS_STORE
node_modules
scripts/flow/*/.flowconfig
.flowconfig
*~
*.pyc
.grunt
_SpecRunner.html
__benchmarks__
# Build output
dist/
build/
remote-repo/
coverage/
.module-cache
fixtures/dom/public/react-dom.js
fixtures/dom/public/react.js
test/the-files-to-test.generated.js
*.log*
chrome-user-data

# Dependencies
node_modules/

# Environment
.uuid.env

# Module Federation temp
.mf/
.__mf__temp/
__mf__temp/

# Editor
.vscode/
.idea/
*.iml
*.sublime-project
*.sublime-workspace
.idea
*.iml
.vscode
*.swp
*.swo
*~

.uuid.env
# OS
.DS_Store

# Logs
*.log*

# Coverage
coverage/
3 changes: 2 additions & 1 deletion AdditionalToolbarButton/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This is a template for creating an additional toolbar button for metatell.

- `npm run dev`: Start the development server
- `npm run build`: Build the project
- `npm run preview`: Preview the production build locally
- `npm run lint`: Run all lint check
- `npm run lint:tsc`: Run code check based on tsc
- `npm run lint:prettier`: Run code check based on prettier
Expand Down Expand Up @@ -75,7 +76,7 @@ You can upload the plugin from metatell-admin dashborad.
- Do not use default export. export Component as named export
- Component name should be `AdditionalToolbarButton`
- component should be placed in `src/AdditionalToolbarButton` directory
- You can change the directory to update federation config in `/configs/federationConfig.js`
- You can change the directory to update federation config in `vite.config.ts`

### Styling

Expand Down
20 changes: 0 additions & 20 deletions AdditionalToolbarButton/configs/federationConfig.js

This file was deleted.

12 changes: 12 additions & 0 deletions AdditionalToolbarButton/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" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AdditionalToolbarButton</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading
Loading