Skip to content

Commit

Permalink
Merge pull request #16 from Arattian/dev-feature
Browse files Browse the repository at this point in the history
Selected rows delete feature added, resizable sidebar. Some bugfixes.
  • Loading branch information
Arattian authored Jan 23, 2019
2 parents 45dfd3d + 19198fd commit 567ee83
Show file tree
Hide file tree
Showing 43 changed files with 1,297 additions and 869 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#### [Download for MacOS (.zip)](https://github.com/Arattian/DynamoDb-GUI-Client/releases/download/3.2.1/DynamoDbGUI-mac-3.2.1.zip)


### [Release v2.1.1 || Old UI](https://github.com/Arattian/DynamoDb-GUI-Client/releases/tag/v2.1.1)

#### [Download for Debian (.deb)](https://github.com/Arattian/DynamoDb-GUI-Client/releases/download/v2.1.1/DynamoDbGUI-linux-amd64-2.1.1.deb)
Expand Down
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"vue-class-component": "^6.3.2",
"vue-json-editor": "^1.2.3",
"vue-property-decorator": "^7.3.0",
"vue-resize-split-pane": "^0.1.3",
"vuex": "^3.1.0",
"vuex-class": "^0.3.1"
},
Expand Down
296 changes: 174 additions & 122 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,133 +1,185 @@
<template lang="pug">
#app
Sidebar(class="sidebar")
Main(class="main")
rs-panes(
split-to="columns"
:allow-resize="true"
:max-size="500"
:min-size="150"
:size="150"
resizerColor="#121820"
:resizerBorderThickness="1"
)
Sidebar(class="sidebar" slot="firstPane")
Main(class="main" slot="secondPane")
TableModals
RecordModals
</template>

<script lang="ts">
import { Vue, Component } from 'vue-property-decorator';
import { Getter, Mutation } from 'vuex-class';
import Main from './containers/Main.vue';
import Sidebar from './containers/Sidebar.vue';
import TableModals from './containers/TableModals.vue';
import RecordModals from './containers/RecordModals.vue';
@Component({
name: 'app',
components: {
Main,
Sidebar,
TableModals,
RecordModals,
},
})
export default class App extends Vue {
}
import { Vue, Component } from 'vue-property-decorator';
import { Getter, Mutation } from 'vuex-class';
import Main from './containers/Main.vue';
import Sidebar from './containers/Sidebar.vue';
import TableModals from './containers/TableModals.vue';
import RecordModals from './containers/RecordModals.vue';
@Component({
name: 'app',
components: {
Main,
Sidebar,
TableModals,
RecordModals,
},
})
export default class App extends Vue {
}
</script>

<style lang="stylus">
@import url('https://fonts.googleapis.com/css?family=Roboto')
*
padding 0
margin 0
font-family 'Roboto', sans-serif
box-sizing border-box
*::-webkit-scrollbar
width 5px
background transparent
*::-webkit-scrollbar-thumb
background #484d54
border-radius 2px
html,body
height 100%
width 100%
font-size 14px
overflow hidden
::placeholder
opacity 0.5
#app
display flex
// customizing some imported components and theme selectors
input[type="text"]:disabled {
color: #aaa !important;
}
.el-checkbox__inner
border 1px solid #307CB0 !important;
.el-popover
border 1px solid #aaa !important
.popper__arrow
display none !important
.el-input__inner
background-color #2c323a !important
.el-tag
background #121820 !important
color #fff !important
.el-tag__close
color #fff !important
background none !important
.cell
text-overflow ellipsis
white-space nowrap !important
.el-tabs__header
background none !important
.el-color-picker__trigger
border none !important
.el-color-picker__color
border 1px solid #121820 !important
// table row height
.el-table .cell
line-height 20px !important
.el-table, .el-list
user-select none !important
td
cursor pointer
.el-input__inner, .el-input
border-radius 0px !important
.jsoneditor
border none !important
height 100% !important
.jsoneditor-field
color #fff !important
// jsoneditor KEY field hover background
.jsoneditor-field:hover,.jsoneditor-field:focus
color #fff !important
background #191d25 !important
border 1px solid #191d25 !important
.jsoneditor-string
color #46b7ff !important
.jsoneditor-menu
background none !important
border none !important
.jsoneditor-contextmenu .jsoneditor-menu
background #fff !important
.jsoneditor-contextmenu:active
background none !important
.jsoneditor-selected
background none !important
.jsoneditor-tree button
color #000 !important
// jsoneditor VALUE field hover background
.jsoneditor-value:hover,.jsoneditor-value:focus
color #fff !important
background #191d25 !important
border 1px solid #191d25 !important
.jsoneditor-tree button:focus
background none !important
outline none !important
.jsoneditor-highlight
background none !important
.jsoneditor-search input
background #2c323a !important
color #fff !important
.jsoneditor-search div.jsoneditor-frame
background #2c323a !important
color #fff !important
border-radius 2px !important
border 1px solid #121820 !important
.jsoneditor-next
display none !important
.jsoneditor-previous
display none !important
@import url('https://fonts.googleapis.com/css?family=Roboto')
*
padding 0
margin 0
font-family 'Roboto', sans-serif
box-sizing border-box
*::-webkit-scrollbar
width 5px
background transparent
*::-webkit-scrollbar-thumb
background #484d54
border-radius 2px
html, body
height 100%
width 100%
font-size 14px
overflow hidden
::placeholder
opacity .5
#app
display flex
width 100%
// customizing some imported components and theme selectors
input[type='text']:disabled
color #aaa !important
.Resizer
z-index 1 !important
.el-dialog__body
z-index 10000 !important
.el-checkbox__inner
border 1px solid #307CB0 !important
.el-popover
border 1px solid #aaa !important
.popper__arrow
display none !important
.el-input__inner
background-color #2c323a !important
.el-tag
background #121820 !important
color #fff !important
.el-tag__close
color #fff !important
background none !important
.cell
text-overflow ellipsis
white-space nowrap !important
.el-tabs__header
background none !important
.el-color-picker__trigger
border none !important
.el-color-picker__color
border 1px solid #121820 !important
// table row height
.el-table .cell
line-height 20px !important
.el-table, .el-list
user-select none !important
td
cursor pointer
.el-input__inner, .el-input
border-radius 0 !important
.jsoneditor
border none !important
height 100% !important
.jsoneditor-field
color #fff !important
// jsoneditor KEY field hover background
.jsoneditor-field:hover, .jsoneditor-field:focus
color #fff !important
background #191d25 !important
border 1px solid #191d25 !important
.jsoneditor-string
color #46b7ff !important
.jsoneditor-menu
background none !important
border none !important
.jsoneditor-contextmenu .jsoneditor-menu
background #fff !important
.jsoneditor-contextmenu:active
background none !important
.jsoneditor-selected
background none !important
.jsoneditor-tree button
color #000 !important
// jsoneditor VALUE field hover background
.jsoneditor-value:hover, .jsoneditor-value:focus
color #fff !important
background #191d25 !important
border 1px solid #191d25 !important
.jsoneditor-tree button:focus
background none !important
outline none !important
.jsoneditor-highlight
background none !important
.jsoneditor-search input
background #2c323a !important
color #fff !important
.jsoneditor-search div.jsoneditor-frame
background #2c323a !important
color #fff !important
border-radius 2px !important
border 1px solid #121820 !important
.jsoneditor-next
display none !important
.jsoneditor-previous
display none !important
</style>
1 change: 1 addition & 0 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ app.on('activate', () => {
// Some APIs can only be used after this event occurs.
app.on('ready', async () => {
const menu = defaultMenu(app, shell);
delete menu[2];
Menu.setApplicationMenu(Menu.buildFromTemplate(menu));
if (isDevelopment && !process.env.IS_TEST) {
// Install Vue Devtools
Expand Down
33 changes: 17 additions & 16 deletions src/components/ActionButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@
</template>

<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator';
@Component
export default class ActionButtons extends Vue {
@Prop(Function) private cancelHandler: any;
@Prop(Function) private confirmHandler: any;
@Prop({default: 'Cancel'}) private cancelText!: string;
@Prop({default: 'primary'}) private cancelType!: string;
@Prop({default: 'Confirm'}) private confirmText!: string;
@Prop({default: 'success'}) private confirmType!: string;
}
import { Vue, Component, Prop } from 'vue-property-decorator';
@Component
export default class ActionButtons extends Vue {
@Prop(Function) private cancelHandler: any;
@Prop(Function) private confirmHandler: any;
@Prop({ default: 'Cancel' }) private cancelText!: string;
@Prop({ default: 'primary' }) private cancelType!: string;
@Prop({ default: 'Confirm' }) private confirmText!: string;
@Prop({ default: 'success' }) private confirmType!: string;
}
</script>

<style lang="stylus" scoped>
.actions
display flex
justify-content center
.el-button
width 100px
margin-top 20px
.actions
display flex
justify-content center
.el-button
width 100px
margin-top 20px
</style>
Loading

0 comments on commit 567ee83

Please sign in to comment.