Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
ulgg committed Jan 20, 2019
1 parent c0e0647 commit c717f6f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 21 deletions.
16 changes: 11 additions & 5 deletions app/index.html
Expand Up @@ -24,14 +24,23 @@ <h1 class="display-4">Ancient Chimes</h1>
Load
</button>
</div>
<div class="col-10">
<div class="col-6">
<button type="button" class="btn btn-outline-secondary"
id="dlBtn" href="#"
onclick="expFile()"
download="FriendList.txt">
Export
</button>
</div>
<div class="col-4">
<div>
<span>
<a href="#" onclick="openLink()" class="btn btn-light">
(C) ulg 2019
<a>
<span>
</div>
</div>
<!--
<div class="col-9 pl-1">
<div class="input-group">
Expand All @@ -52,7 +61,7 @@ <h1 class="display-4">Ancient Chimes</h1>
<thead>
<tr id="tableHeader">
<td>#</td>
<td>Name</td>
<td>Summoner Name</td>
</tr>
</thead>
<tbody id="snInfoTbody">
Expand All @@ -62,9 +71,6 @@ <h1 class="display-4">Ancient Chimes</h1>
</div>
</div>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
Chromium <script>document.write(process.versions.chrome)</script>,
and Electron <script>document.write(process.versions.electron)</script>.

<script>
// You can also require other files to run in this process
Expand Down
9 changes: 5 additions & 4 deletions app/renderer.js
@@ -1,11 +1,8 @@
'use strict'

const electron = require('electron')
const fs = require('fs')
const remote = electron.remote
const summonerUtil = remote.require('./app/lib/summonerUtil')

const { ipcRenderer } = require('electron')
const { shell } = require('electron')

function loadSnInfos(){

Expand Down Expand Up @@ -119,6 +116,10 @@ function expFile() {
window.URL.revokeObjectURL(dlUrl)
}

function openLink(event) {
shell.openExternal('https://github.com/ulgg/ancient-chimes');
}

/*
function setFileNameToInput() {
let fileNameBtn = document.getElementById("fileNameBtn")
Expand Down
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -21,11 +21,11 @@
"build": {
"win": {
"target": "zip"
}
},
"files": [
"!**/.vscode",
"!**/README.md",
"!**/dist"
]
},
"files": [
"!**/.vscode",
"!**/README.md",
"!**/dist"
]
}
}
5 changes: 0 additions & 5 deletions yarn.lock
Expand Up @@ -1066,11 +1066,6 @@ fs.realpath@^1.0.0:
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8=

fs@^0.0.1-security:
version "0.0.1-security"
resolved "https://registry.yarnpkg.com/fs/-/fs-0.0.1-security.tgz#8a7bd37186b6dddf3813f23858b57ecaaf5e41d4"
integrity sha1-invTcYa23d84E/I4WLV+yq9eQdQ=

fsevents@^1.0.0:
version "1.2.7"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.7.tgz#4851b664a3783e52003b3c66eb0eee1074933aa4"
Expand Down

0 comments on commit c717f6f

Please sign in to comment.