This repository has been archived by the owner on May 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
866 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ npm-debug.log | |
npm-debug.log.* | ||
thumbs.db | ||
!.gitkeep | ||
src/renderer/env.js |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "dokdrop", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"author": "Julien Gelmar <[email protected]>", | ||
"description": "Dokdrop", | ||
"license": null, | ||
|
@@ -16,11 +16,12 @@ | |
"pack": "npm run pack:main && npm run pack:renderer", | ||
"pack:main": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.main.config.js", | ||
"pack:renderer": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.renderer.config.js", | ||
"postinstall": "npm run lint:fix" | ||
"postinstall": "npm run lint:fix", | ||
"publish": "electron-builder --x64 --win -p always" | ||
}, | ||
"build": { | ||
"productName": "dokdrop", | ||
"appId": "org.simulatedgreg.electron-vue", | ||
"appId": "org.juliengelmar.dokdrop", | ||
"directories": { | ||
"output": "build" | ||
}, | ||
|
@@ -45,11 +46,17 @@ | |
"mac": { | ||
"icon": "build/icons/icon.icns" | ||
}, | ||
"publish": { | ||
"provider": "github" | ||
}, | ||
"win": { | ||
"icon": "build/icons/icon.ico" | ||
}, | ||
"linux": { | ||
"icon": "build/icons" | ||
"icon": "build/icons/png" | ||
}, | ||
"nsis": { | ||
"oneClick": true | ||
} | ||
}, | ||
"dependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,33 @@ | ||
<template> | ||
<div> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<h4 class="card-title">Please set your iRacing folder and saving</h4> | ||
<p class="card-text"> | ||
Your default folder should be something like "C:\Users\User\Documents\iRacing\setups" | ||
<form> | ||
<label for="folder" class="grey-text">Folder</label> | ||
<input type="text" v-model="inputs.folder" class="form-control" placeholder="Folder"> | ||
<label for="saving" class="grey-text mt-2">Saving Method</label> | ||
<div class="md-form mt-2"> | ||
<div class="col-sm-12"> | ||
<input type="radio" v-model="inputs.saving" value="season"> car\track\season\setup.sto | ||
</div> | ||
<div class="col-sm-12"> | ||
<input type="radio" v-model="inputs.saving" value="track"> car\track\setup.sto | ||
</div> | ||
<div class="col-sm-12"> | ||
<input type="radio" v-model="inputs.saving" value="car"> car\setup.sto | ||
</div> | ||
</div> | ||
<div class="text-center mt-4"> | ||
<button class="btn btn-primary" type="button" @click="set">Set</button> | ||
<router-link to="/" class="btn btn-secondary">Back</router-link> | ||
</div> | ||
</form> | ||
<setting-card :buttons="true"></setting-card> | ||
</div> | ||
</div> | ||
<div class="card mt-4"> | ||
<div class="card-body"> | ||
<h4 class="card-title">About</h4> | ||
<p class="card-body"> | ||
Made by <a class="text-primary" @click="external('https://gelmar.app')">Julien Gelmar</a><br> | ||
Version 0.1 | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import SettingCard from './partials/SettingCard.vue' | ||
const {shell} = require('electron') | ||
export default { | ||
name: 'settings', | ||
data: () => { | ||
return { | ||
folder: null, | ||
saving: null, | ||
inputs: { folder: null, saving: null } | ||
} | ||
}, | ||
components: { SettingCard }, | ||
methods: { | ||
set () { | ||
if (!this.inputs.folder) { | ||
this.notify('error', 'Please set a folder.') | ||
} | ||
if (!this.inputs.saving) { | ||
this.notify('error', 'Please set a saving method.') | ||
} | ||
if (this.inputs.folder && this.inputs.saving) { | ||
this.saving = this.inputs.saving | ||
localStorage.setItem('saving', this.saving) | ||
if (this.$fs.existsSync(this.inputs.folder)) { | ||
this.folder = this.inputs.folder | ||
localStorage.setItem('folder', this.folder) | ||
} else { | ||
this.folder = null | ||
localStorage.removeItem('folder') | ||
this.notify('error', 'Folder does not seem to exist. Please double check.') | ||
} | ||
} | ||
external (url) { | ||
shell.openExternal(url) | ||
} | ||
}, | ||
mounted () { | ||
this.saving = this.inputs.saving = (localStorage.getItem('saving')) ? localStorage.getItem('saving') : 'season' | ||
this.folder = this.inputs.folder = (localStorage.getItem('folder')) ? localStorage.getItem('folder') : null | ||
} | ||
} | ||
</script> |
Oops, something went wrong.