Commit code with double quotes instead of single quotes

This commit is contained in:
Dmitry Yankowski
2020-02-24 21:06:23 -05:00
parent 3bd7c00038
commit 48100ead55
74 changed files with 3184 additions and 3184 deletions

View File

@@ -19,7 +19,7 @@
>
<button :disabled="!fb.currentUser" class="icon" @click="syncEnvironments">
<i class="material-icons">folder_shared</i>
<span>{{ $t('import_from_sync') }}</span>
<span>{{ $t("import_from_sync") }}</span>
</button>
</span>
<button
@@ -28,7 +28,7 @@
v-tooltip="$t('replace_current')"
>
<i class="material-icons">create_new_folder</i>
<span>{{ $t('replace_json') }}</span>
<span>{{ $t("replace_json") }}</span>
<input
type="file"
@change="replaceWithJSON"
@@ -43,7 +43,7 @@
v-tooltip="$t('preserve_current')"
>
<i class="material-icons">folder_special</i>
<span>{{ $t('import_json') }}</span>
<span>{{ $t("import_json") }}</span>
<input
type="file"
@change="importFromJSON"
@@ -64,10 +64,10 @@
<span></span>
<span>
<button class="icon" @click="hideModal">
{{ $t('cancel') }}
{{ $t("cancel") }}
</button>
<button class="icon primary" @click="exportJSON" v-tooltip="$t('download_file')">
{{ $t('export') }}
{{ $t("export") }}
</button>
</span>
</div>
@@ -76,7 +76,7 @@
</template>
<script>
import { fb } from '../../functions/fb'
import { fb } from "../../functions/fb"
export default {
data() {
@@ -88,7 +88,7 @@ export default {
show: Boolean,
},
components: {
modal: () => import('../../components/modal'),
modal: () => import("../../components/modal"),
},
computed: {
environmentJson() {
@@ -97,7 +97,7 @@ export default {
},
methods: {
hideModal() {
this.$emit('hide-modal')
this.$emit("hide-modal")
},
openDialogChooseFileToReplaceWith() {
this.$refs.inputChooseFileToReplaceWith.click()
@@ -110,7 +110,7 @@ export default {
reader.onload = event => {
let content = event.target.result
let environments = JSON.parse(content)
this.$store.commit('postwoman/replaceEnvironments', environments)
this.$store.commit("postwoman/replaceEnvironments", environments)
}
reader.readAsText(this.$refs.inputChooseFileToReplaceWith.files[0])
this.fileImported()
@@ -120,8 +120,8 @@ export default {
reader.onload = event => {
let content = event.target.result
let environments = JSON.parse(content)
let confirmation = this.$t('file_imported')
this.$store.commit('postwoman/importAddEnvironments', {
let confirmation = this.$t("file_imported")
this.$store.commit("postwoman/importAddEnvironments", {
environments,
confirmation,
})
@@ -130,29 +130,29 @@ export default {
},
exportJSON() {
let text = this.environmentJson
text = text.replace(/\n/g, '\r\n')
text = text.replace(/\n/g, "\r\n")
let blob = new Blob([text], {
type: 'text/json',
type: "text/json",
})
let anchor = document.createElement('a')
anchor.download = 'postwoman-environment.json'
let anchor = document.createElement("a")
anchor.download = "postwoman-environment.json"
anchor.href = window.URL.createObjectURL(blob)
anchor.target = '_blank'
anchor.style.display = 'none'
anchor.target = "_blank"
anchor.style.display = "none"
document.body.appendChild(anchor)
anchor.click()
document.body.removeChild(anchor)
this.$toast.success(this.$t('download_started'), {
icon: 'done',
this.$toast.success(this.$t("download_started"), {
icon: "done",
})
},
syncEnvironments() {
this.$store.commit('postwoman/replaceEnvironments', fb.currentEnvironments)
this.$store.commit("postwoman/replaceEnvironments", fb.currentEnvironments)
this.fileImported()
},
fileImported() {
this.$toast.info(this.$t('file_imported'), {
icon: 'folder_shared',
this.$toast.info(this.$t("file_imported"), {
icon: "folder_shared",
})
},
},