Skip to content

General QOF improvements #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 8, 2019
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
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Apart from minor improvements and further testing of various mixes of Ionic comp
| MS Edge Fix | :heavy_check_mark: | :heavy_check_mark: | Fully implemented |
| Router keep-alive | :heavy_check_mark: | [Pending](https://github.com/ionic-team/ionic/pull/18561) | - |
| Functional Inputs | :heavy_check_mark: | [Pending](https://github.com/ionic-team/ionic/pull/19087) | - |
| Import controllers directly | :soon: | :x: | Improve treeshaking and sync with react and angular implementations |
| Import controllers directly | :heavy_check_mark: | [Pending](https://github.com/ionic-team/ionic/pull/19573) | Improve treeshaking and sync with react and angular implementations |
| Unit tests | :x: | :x: | Outdated as were originally written in plain JS, need to be updated for TS |

## Installing / Getting started
Expand Down Expand Up @@ -92,13 +92,16 @@ IonicVueRouter requires `ion-vue-router` element in order to render Ionic transi

### IonicVue

`IonicVue` abstracts DOM interaction of Ionic UI components inside a Vue application and can be used via `this.$ionic`.
`IonicVue` abstracts DOM interaction of Ionic UI components inside a Vue application.
:warning: Use of `this.$ionic` or `Vue.$ionic` is deprecated and will be removed in the near future. Please use the example below instead:

```js
import { alertController } from '@ionic/vue';

Vue.component('Foo', {
methods: {
notify() {
this.$ionic.alertController
alertController
.create({
header: 'Notification',
subHeader: null,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"scripts": {
"dev": "rollup -c ./build/rollup.config.js",
"watch": "rollup -w -c ./build/rollup.config.js",
"prod": "NODE_ENV=production rollup -c ./build/rollup.config.js --configProd",
"prod": "npm run clean && NODE_ENV=production rollup -c ./build/rollup.config.js --configProd",
"lint": "tslint --project .",
"lint.fix": "tslint --project . --fix",
"test": "jest --coverage --verbose",
Expand Down
9 changes: 9 additions & 0 deletions scripts/clean.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const fs = require('fs-extra')
const path = require('path')

const cleanDirs = ['dist']

cleanDirs.forEach(dir => {
const cleanDir = path.join(__dirname, '../', dir)
fs.removeSync(cleanDir)
})
3 changes: 3 additions & 0 deletions src/components/navigation/ion-tabs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import Vue, { CreateElement, RenderContext, VNode } from 'vue';
import { Route } from 'vue-router';


interface EventListeners {
// tslint:disable-next-line:ban-types
[key: string]: Function | Function[];
}

Expand Down Expand Up @@ -158,6 +160,7 @@ function parseTabBar(vnode: VNode, tab: string, listeners: EventListeners): VNod
if (Array.isArray(child.data.on.click)) {
child.data.on.click.push(clickHandler);
} else {
// tslint:disable-next-line:ban-types
child.data.on.click = [child.data.on.click as Function, clickHandler];
}
}
Expand Down
3 changes: 0 additions & 3 deletions types/api-utils.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions types/components/ion-vue-router-transitionless.vue.d.ts

This file was deleted.

25 changes: 0 additions & 25 deletions types/components/ion-vue-router.vue.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions types/components/navigation/IonTabs.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions types/controllers/action-sheet-controller.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions types/controllers/alert-controller.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions types/controllers/loading-controller.d.ts

This file was deleted.

70 changes: 0 additions & 70 deletions types/controllers/menu-controller.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions types/controllers/picker-controller.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions types/controllers/toast-controller.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions types/mixins/catch-ionic-go-back.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions types/util.d.ts

This file was deleted.