Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e239342
Add help widget icon (bottom-right-cornet)
mittalyashu May 29, 2019
f191a24
Move appVersion to help widget
mittalyashu May 29, 2019
ae8c5dc
Toggle help widget
mittalyashu Jun 1, 2019
f706737
Add bug report item
mittalyashu Jun 1, 2019
bd28818
feedback modal vuex state, mutation, action
mittalyashu Jun 1, 2019
1da2aff
Add share feedback item to help widget
mittalyashu Jun 1, 2019
27ccf21
Create share feedback modal
mittalyashu Jun 1, 2019
7052a9f
Create textarea component
mittalyashu Jun 1, 2019
740544c
Import feedback modal component
mittalyashu Jun 1, 2019
b254808
toggleFeedback mutation
mittalyashu Jun 1, 2019
0a09fe3
Install DOM to image package
mittalyashu Jun 1, 2019
ba0b117
Add cols & rows as props to textarea
mittalyashu Jun 1, 2019
fb64d7a
Add input name and feedback message textarea
mittalyashu Jun 1, 2019
703719c
Remove image props
mittalyashu Jun 1, 2019
e78e724
Remove dom-to-image package
mittalyashu Jun 1, 2019
320f22a
Install imgur package
mittalyashu Jun 2, 2019
5e4c9a7
Remove imgur package
mittalyashu Jun 5, 2019
37d95f6
Install dotenv package
mittalyashu Jun 5, 2019
1531647
Add .env file to .gitignore
mittalyashu Jun 5, 2019
d75769e
Create textAreaLabel component
mittalyashu Jun 5, 2019
edc5cea
Switch to text-area-label component
mittalyashu Jun 5, 2019
9b42168
Post feedback messages to discord
mittalyashu Jun 5, 2019
a2bb8a5
DISCORD_FEEDBACK_WEBHOOK variable globally
mittalyashu Jun 5, 2019
dd71048
Change discord feedback webhook variable key name
mittalyashu Jun 5, 2019
9721c94
Write object in shorthand
mittalyashu Jun 5, 2019
c839e41
Console log all environment variable
mittalyashu Jun 5, 2019
c8aa8e2
Resize props to textArea and textAreaLabel component
mittalyashu Dec 26, 2019
1999aef
Remove name text field in feedback form
mittalyashu Dec 26, 2019
06eebac
Set message textbox to resize vertically
mittalyashu Dec 26, 2019
154a624
Add smile & frown icon as vue component
mittalyashu Dec 29, 2019
d492df2
feat: post thermal feedback to twitter
mittalyashu Dec 29, 2019
653e456
Restore files previous state to commit 'f191a24'
mittalyashu Dec 29, 2019
ae7724e
Merge branch 'master' into feature/share-feedback
mittalyashu Dec 29, 2019
de66e0c
Update import paths of feedback modal component
mittalyashu Dec 29, 2019
7471d3b
fix: toggleFeedbackModal mutation
mittalyashu Dec 29, 2019
f7b2113
Replace with TCard* components
mittalyashu Dec 29, 2019
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: 9 additions & 0 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<dropdown-item @click.native="reportIssue">
Report a bug 🐛
</dropdown-item>
<dropdown-item @click.native="shareFeedback">
Share feedback 🗣
</dropdown-item>
<dropdown-divider />
<div class="help__widget-version">
{{ appVersion }}
Expand All @@ -53,6 +56,7 @@ import newRemote from "./modal/newRemote";
import initializeGitRepository from "./modal/initializeGitRepository";
import cloneRepository from "./modal/cloneRepository";
import switchRepository from "./modal/switchRepository";
import feedback from "./modal/feedback";

// help widget
import packageJson from "../../package.json";
Expand All @@ -78,6 +82,7 @@ export default {
initializeGitRepository,
cloneRepository,
switchRepository,
feedback,
DropdownList,
DropdownItem,
DropdownDivider
Expand Down Expand Up @@ -149,6 +154,10 @@ export default {
);
this.toggleHelpWidget();
},
shareFeedback() {
this.$store.commit("modal/toggleFeedbackModal", true);
this.toggleHelpWidget();
},
toggleHelpWidget() {
this.helpWidget = !this.helpWidget;
}
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/components/icon/frown.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>
</template>
3 changes: 3 additions & 0 deletions src/renderer/components/icon/smile.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>
</template>
111 changes: 111 additions & 0 deletions src/renderer/components/input/textarea.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<template>
<textarea
:name="name"
class="textarea"
:class="{
'textarea-disable': disabled,
'textarea-invalid': isInvalid
}"
:placeholder="placeholder"
:disabled="disabled"
:style="{
...spacingProps,
...borderProps,
...fontProps,
resize
}"
:rows="rows"
:cols="cols"
@input="$emit('input', $event.target.value)"
></textarea>
</template>

<script>
import spacingProps from "../../mixins/spacingProps";
import borderProps from "../../mixins/borderProps";
import fontProps from "../../mixins/fontProps";

export default {
name: "TextArea",
mixins: [spacingProps, borderProps, fontProps],
props: {
name: {
type: String,
default: "inputField",
required: true
},
placeholder: {
type: String,
default: "Enter the value",
required: true
},
disabled: {
type: Boolean,
default: false
},
isInvalid: {
type: Boolean,
default: false
},
cols: {
type: Number,
default: 5
},
rows: {
type: Number,
default: 5
},
borderRadius: {
type: String,
default: ".3"
},
fontSize: {
type: Number,
default: 0.833
},
paddingTop: {
type: String,
default: ".5rem"
},
paddingBottom: {
type: String,
default: ".5rem"
},
paddingLeft: {
type: String,
default: ".8rem"
},
paddingRight: {
type: String,
default: ".8rem"
},
width: {
type: String,
default: "100%"
},
resize: {
type: String,
default: "both"
}
}
};
</script>

<style lang="sass">
.textarea
outline: none
border-color: #eeeeee

&-disable
background-color: #eeeeee
color: #222831
cursor: not-allowed
user-select: none

&-invalid
border-color: #f04747

&:focus
box-shadow: rgba(#00adb5, .2) 0 0 0 3px
border-color: #00adb5
</style>
82 changes: 82 additions & 0 deletions src/renderer/components/input/textareaLabel.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<template>
<div :style="{ ...spacingProps }">
<p class="textarea__label" :for="labelName">
{{ label }}
</p>
<text-area
name="Feedback message"
placeholder="Enter your message"
label="Message"
:cols="cols"
:value="value"
:disabled="disabled"
:is-invalid="isInvalid"
:resize="resize"
@input="$emit('input', $event)"
/>
</div>
</template>

<script>
import spacingProps from "../../mixins/spacingProps";
import TextArea from "./textarea";

export default {
name: "TextAreaLabel",
components: {
TextArea
},
mixins: [spacingProps],
props: {
name: {
type: String,
default: "inputField",
required: true
},
placeholder: {
type: String,
default: "Enter the value",
required: true
},
value: {
type: String,
default: ""
},
disabled: {
type: Boolean,
default: false
},
isInvalid: {
type: Boolean,
default: false
},
cols: {
type: Number,
default: 5
},
rows: {
type: Number,
default: 5
},
label: {
type: String,
required: true
},
resize: {
type: String,
default: "both"
}
},
computed: {
labelName() {
return this.label.toLowerCase().replace(" ", "_");
}
}
};
</script>

<style lang="sass">
.textarea__label
font-size: 12px
margin-bottom: .2rem
</style>
Loading