Skip to content

Commit 06ee13f

Browse files
vasilev-alexLeonid Yakovlev
and
Leonid Yakovlev
authored
feat(@cubejs-client/vue): vue query builder (#1824)
* feat(@cubejs-client/vue): vue query builder * wip * other chart types * graphql wip * graphql wip * vue-query-builder: TimeDimensions and DateRange to components * vue-query-builder: Add charts to Dashboard page * vue-query-builder: cubejsApi to router * vue-query-builder: add charts by type to dashboard page * vue-query-builder: add grid-layout * vue-query-builder: update grid layout * vue-query-builder: grid * vue-query-builder: grid update height * vue-query-builder: clear explore page, sessionGranularity to heuristicsFn * fix * tests and query builder fixes * test fix * improvements * lint fixes * refactoring, fixes * tests fix * error fix * test fix * missing type * updated yarn.lock Co-authored-by: Leonid Yakovlev <[email protected]>
1 parent b90218a commit 06ee13f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2655
-9980
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"include": [
3+
"./src/**/*"
4+
]
5+
}

examples/vue-query-builder/dashboard-app/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,23 @@
1111
"dependencies": {
1212
"@cubejs-client/core": "^0.24.0",
1313
"@cubejs-client/vue": "^0.19.43",
14+
"apollo-boost": "^0.4.9",
15+
"apollo-cache-inmemory": "^1.6.6",
16+
"apollo-client": "^2.6.10",
17+
"apollo-link": "^1.2.14",
18+
"apollo-link-http": "^1.5.17",
19+
"apollo-link-schema": "^1.2.5",
1420
"chart.js": "^2.9.3",
1521
"core-js": "^3.6.5",
22+
"graphql": "^15.5.0",
23+
"graphql-tag": "^2.11.0",
24+
"graphql-tools": "5.0.0",
1625
"vue": "^2.6.11",
26+
"vue-apollo": "^3.0.5",
1727
"vue-chartkick": "^0.6.0",
28+
"vue-grid-layout": "^2.3.12",
29+
"vue-router": "^3.5.1",
30+
"vuedraggable": "^2.24.3",
1831
"vuetify": "^2.2.11"
1932
},
2033
"devDependencies": {
Lines changed: 54 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<template>
22
<v-app>
3-
<v-app-bar
4-
app
5-
color="#43436B"
6-
dark
7-
class="px-4"
8-
>
3+
<v-app-bar app color="#43436B" dark class="px-4">
94
<div class="d-flex align-center">
105
<v-img
116
alt="Vuetify Logo"
@@ -15,86 +10,96 @@
1510
transition="scale-transition"
1611
/>
1712
</div>
13+
14+
<v-tabs align-with-title>
15+
<v-tab to="/explore">Explore</v-tab>
16+
<v-tab to="/dashboard">Dashboard</v-tab>
17+
</v-tabs>
18+
1819
<v-spacer></v-spacer>
20+
1921
<v-hover v-slot:default="{ hover }">
20-
<a class="custom-btn mr-4" href="https://github.com/cube-js/cube.js/tree/master/examples/vue-query-builder" target="_blank">
21-
<v-img v-if="!hover"
22+
<a
23+
class="custom-btn mr-4"
24+
href="https://github.com/cube-js/cube.js/tree/master/examples/vue-query-builder"
25+
target="_blank"
26+
>
27+
<v-img
28+
v-if="!hover"
2229
alt="GitHub Logo"
2330
src="./assets/github.svg"
2431
class="mr-2"
2532
width="20px"
2633
height="20px"
2734
transition="scale-transition"
2835
/>
29-
<v-img v-else
30-
alt="GitHub Logo"
31-
src="./assets/githubWhite.svg"
32-
class="mr-2"
33-
width="20px"
34-
height="20px"
35-
transition="scale-transition"
36+
<v-img
37+
v-else
38+
alt="GitHub Logo"
39+
src="./assets/githubWhite.svg"
40+
class="mr-2"
41+
width="20px"
42+
height="20px"
43+
transition="scale-transition"
3644
/>
3745
<button type="button">GitHub</button>
3846
</a>
3947
</v-hover>
4048
<v-hover v-slot:default="{ hover }">
4149
<a class="custom-btn" href="https://slack.cube.dev/" target="_blank">
42-
<v-img v-if="!hover"
50+
<v-img
51+
v-if="!hover"
4352
alt="Slack Logo"
4453
src="./assets/slack.svg"
4554
class="mr-2"
4655
width="20px"
4756
height="20px"
4857
transition="scale-transition"
4958
/>
50-
<v-img v-else
51-
alt="Slack Logo"
52-
src="./assets/slackWhite.svg"
53-
class="mr-2"
54-
width="20px"
55-
height="20px"
56-
transition="scale-transition"
59+
<v-img
60+
v-else
61+
alt="Slack Logo"
62+
src="./assets/slackWhite.svg"
63+
class="mr-2"
64+
width="20px"
65+
height="20px"
66+
transition="scale-transition"
5767
/>
5868
<button type="button">Slack</button>
5969
</a>
6070
</v-hover>
6171
</v-app-bar>
6272

6373
<v-main>
64-
<HelloWorld/>
74+
<router-view></router-view>
6575
</v-main>
6676
</v-app>
6777
</template>
68-
6978
<script>
70-
import HelloWorld from './components/HelloWorld'
71-
7279
export default {
7380
name: 'App',
7481
75-
components: {
76-
HelloWorld
77-
}
78-
}
82+
components: {},
83+
};
7984
</script>
8085

8186
<style scoped>
82-
.custom-btn {
83-
display: flex;
84-
align-items: center;
85-
padding: 6px 12px;
86-
background: rgba(243, 243, 251, 0.1);
87-
border-radius: 4px;
88-
text-decoration: none;
89-
font-style: normal;
90-
font-weight: normal;
91-
font-size: 16px;
92-
line-height: 26px;
93-
letter-spacing: 0.02em;
94-
font-feature-settings: 'ss03' on, 'ss04' on;
95-
color: #FFFFFF;
96-
}
97-
.custom-btn:hover {
98-
background: rgba(243, 243, 251, 0.2);
99-
}
87+
.custom-btn {
88+
display: flex;
89+
align-items: center;
90+
padding: 6px 12px;
91+
background: rgba(243, 243, 251, 0.1);
92+
border-radius: 4px;
93+
text-decoration: none;
94+
font-style: normal;
95+
font-weight: normal;
96+
font-size: 16px;
97+
line-height: 26px;
98+
letter-spacing: 0.02em;
99+
font-feature-settings: 'ss03' on, 'ss04' on;
100+
color: #ffffff;
101+
}
102+
.custom-btn:hover {
103+
background: rgba(243, 243, 251, 0.2);
104+
}
100105
</style>

examples/vue-query-builder/dashboard-app/src/components/FilterComponent.vue

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)