Skip to content

Commit

Permalink
Initial release 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
tpetry committed Jul 7, 2023
0 parents commit ca895d3
Show file tree
Hide file tree
Showing 17 changed files with 6,808 additions and 0 deletions.
Binary file added .github/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Build plugin
run: npm ci && npm run build
working-directory: MysqlExplain.tableplusplugin

- name: Make zip
run: zip tableplus-mysql-explain-plugin-${GITHUB_REF_NAME}.zip MysqlExplain.tableplusplugin/build/* MysqlExplain.tableplusplugin/manifest.json

- name: Release
uses: softprops/action-gh-release@v1
with:
files: tableplus-mysql-explain-plugin-*.zip
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2023 Tobias Petry (https://explainmysql.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions MysqlExplain.tableplusplugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
node_modules/
18 changes: 18 additions & 0 deletions MysqlExplain.tableplusplugin/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "MySQL Explain",
"identifier": "com.explainmysql",
"version": "1.0",
"detail": "This plugin helps with analyzing MySQL and MariaDB queries.",
"author": "Tobias Petry",
"authorEmail": "hello@tpetry.me",
"site": "https://explainmysql.com",
"scripts": [
{
"location": "main",
"type": "action",
"shortcut": "control+e",
"script": "build/plugin.js",
"name": "Explain SQL"
}
]
}
Loading

0 comments on commit ca895d3

Please sign in to comment.