0.1.23 • Published 5 months ago

@gatship/gs-components v0.1.23

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

gs-components

Vue 2 component library v1

This plugin library comes with a set of components and mixins for vue 2.

Requirements

latest vuetify 2 version. latest vue 2 version (2.7.14 or higher)

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Adding the plugin exsisting project

  1. npm i @gatship/gs-components

  2. import the plugin in main.js/main.ts

  3. call the install function with the Vue instance as an argument.

main.js / main.ts

import Vue from 'vue';
import App from './App.vue';
import vuetify from './plugins/vuetify';
// The gsComponents import
import gsComponents from './gat-components/index';

// Installing the gsComponents plugin.
gsComponents.install(Vue);

new Vue({
  vuetify,
  render: (h) => h(App),
}).$mount('#app');

Adding intellisense if using typescript

  1. Create a components.d.ts file in your src directory.
  2. copy/paste the content below into the components.d.ts

components.d.ts

declare module 'vue' {
  export interface GlobalComponents {
    GatButton: typeof import('@gatship/gs-components')['GatButton'];
    GatButtonGroup: typeof import('@gatship/gs-components')['GatButtonGroup'];
    GatDialog: typeof import('@gatship/gs-components')['GatDialog'];
    GatGrid: typeof import('@gatship/gs-components')['GatGrid'];
    GatEdit: typeof import('@gatship/gs-components')['GatEdit'];
    GatSelect: typeof import('@gatship/gs-components')['GatSelect'];
    GatMultiSelect: typeof import('@gatship/gs-components')['GatMultiSelect'];
    GatBottomPanel: typeof import('@gatship/gs-components')['GatBottomPanel'];
    GatCompactField: typeof import('@gatship/gs-components')['GatCompactField'];
    GatFieldSpacer: typeof import('@gatship/gs-components')['GatFieldSpacer'];
    GatFlex: typeof import('@gatship/gs-components')['GatFlex'];
    GatForm: typeof import('@gatship/gs-components')['GatForm'];
    GatGroup: typeof import('@gatship/gs-components')['GatGroup'];
    GatSubGroup: typeof import('@gatship/gs-components')['GatSubGroup'];
    RecordPresenter: typeof import('@gatship/gs-components')['RecordPresenter'];
    GatLookupEdit: typeof import('@gatship/gs-components')['GatLookupEdit'];
    GatTab: typeof import('@gatship/gs-components')['GatTab'];
    GatReloadBtn: typeof import('@gatship/gs-components')['GatReloadBtn'];
  }
}

export {};

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your unit tests

npm run test:unit

Run your end-to-end tests

npm run test:e2e

Lints and fixes files

npm run lint

Publish to npm

npm run pub

Customize configuration

See Configuration Reference.

0.1.10

7 months ago

0.1.11

7 months ago

0.1.12

7 months ago

0.1.13

7 months ago

0.1.14

7 months ago

0.1.15

7 months ago

0.1.20

6 months ago

0.1.21

6 months ago

0.1.22

5 months ago

0.1.23

5 months ago

0.1.0

9 months ago

0.1.2

9 months ago

0.1.16

7 months ago

0.1.8

7 months ago

0.1.17

6 months ago

0.1.7

8 months ago

0.1.18

6 months ago

0.1.19

6 months ago

0.1.9

7 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.6

8 months ago

0.1.5

8 months ago

0.0.21

10 months ago

0.0.20

12 months ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago