Giter Club home page Giter Club logo

sql-editor's Introduction

SQL Editor

A SQL editor view where users can query easily on a table using SQL, and see the results.

For a demo click here

video

Performance

performance

Steps performed to improve performance

  1. Used webpack bundle analyzer to anlyze the build.
  2. According to analyzer element-plus package contributed most to the size of vendor file (400 KiB).
  3. Then moved the global imports of element-plus components that were only used once to there respesting components.
  4. This reduced the size of vendor file to 316 KiB.
  5. Then applied lazy loading to Navbar component, which slit the vendor file and new size of vendor file become 244 KiB.
  6. This whole process doesn't changed the overall size of build, it improved the performance by only loading the chunk when required.

Folder Structure

.
├── db ⇒ act as database for project
├── media
├── public
│   ├── _redirects ⇒ redirect config for netlify
│   └── index.html
├── src
│   ├── assets
│   ├── components
│   │   ├── Icon.vue
│   │   ├── Navbar.vue
│   │   ├── QueryResult.vue
│   │   ├── SaveIcon.vue
│   │   ├── SideNav.vue
│   │   ├── SQLIcon.vue
│   │   ├── Tabbar.vue
│   │   └── TableIcon.vue
│   ├── plugins
│   │   └── element.js
│   ├── router
│   │   └── index.js
│   ├── utils
│   │   ├── auth.js
│   │   └── index.js
│   ├── views
│   │   ├── Dashboard.vue
│   │   ├── Editor.vue
│   │   ├── Home.vue
│   │   ├── Login.vue
│   │   └── NotFound.vue
│   ├── App.vue
│   ├── fakexios.js ⇒ to simulate api calls
│   └── main.js
├── .browserlistrc
├── .gitignore
├── babel.config.js
├── jsconfig.json
├── LICENSE
├── package.json
├── README.md
└── yarn.lock

Project

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

sql-editor's People

Contributors

bhed01 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.