Skip to content

Commit

Permalink
add edit-description btns
Browse files Browse the repository at this point in the history
  • Loading branch information
mintnick committed Jan 8, 2023
1 parent 1e3b1fa commit 8b4b581
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 4 deletions.
14 changes: 14 additions & 0 deletions eve-settings-manager.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"folders": [
{
"path": "."
},
{
"path": "../../../Library/Application Support/eve-settings-manager"
},
{
"path": "../../../Downloads/1_eve_sharedcache_tq_tranquility/settings_Default"
}
],
"settings": {}
}
2 changes: 1 addition & 1 deletion src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ tr {
}

#table-section button {
width: 45%;
width: 30%;
margin-top: 5px;
}

Expand Down
4 changes: 4 additions & 0 deletions src/js/change-language.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ function changeLanguage(lang) {
const serverTitle = $('#server-title')
const selectFolderBtn = $('#select-folder-btn')
const openFolderBtn = $('#open-folder-btn')
const editCharDescriptionBtn = $('#edit-char-description-btn')
const overwriteCharBtn = $('#overwrite-char-btn')
const overwriteSelectedCharBtn = $('#overwrite-selected-char-btn')
const editAccountDescriptionBtn = $('#edit-account-description-btn')
const overwriteAccountBtn = $('#overwrite-account-btn')
const overwriteSelectedAccountBtn = $('#overwrite-selected-account-btn')
const loginBtn = $('#login-btn')
Expand Down Expand Up @@ -49,6 +51,8 @@ function changeLanguage(lang) {
overwriteAccountBtn.text(buttons.overwriteAccount)
overwriteSelectedAccountBtn.text(buttons.overwriteSelectedAccount)
loginBtn.text(buttons.login)
editCharDescriptionBtn.text(buttons.editDescription)
editAccountDescriptionBtn.text(buttons.editDescription)
}

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion src/js/eve-folder.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async function readSettingFiles() {
}

function overwrite(type, prototype, target = []) {

// TODO overwrite
}

module.exports = {
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"buttons": {
"selectFolder": "Select Folder",
"openFolder": "Open Folder",
"editDescription": "Edit Description",
"overwriteChar": "Overwrite All",
"overwriteSelectedChar": "Overwrite...",
"overwriteAccount": "Overwrite All",
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"buttons": {
"selectFolder": "选择文件夹",
"openFolder": "打开文件夹",
"editDescription": "编辑备注",
"overwriteChar": "覆盖所有角色",
"overwriteSelectedChar": "覆盖角色...",
"overwriteAccount": "覆盖所有帐号",
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function createWindow () {
// restore window bounds
const savedBounds = AppConfig.readSettings('bounds')
const bounds = savedBounds ?? {
width: 800,
width: 1080,
height: 600,
}
bounds.webPreferences = {
Expand Down
4 changes: 3 additions & 1 deletion src/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ <h5 id="char-table-title">Characters</h5>
</select>
</div>
<div id="char-table-btn-group">
<button id="edit-char-description-btn" type="button" class="btn btn-info">edit description</button>
<button id="overwrite-char-btn" type="button" class="btn btn-success">overwrite all</button>
<button id="overwrite-selected-char-btn" type="button" class="btn btn-outline-success">overwrite some</button>
</div>
Expand All @@ -73,7 +74,8 @@ <h5 id="account-table-title">Accounts</h5>
<option class="loading-opt"></option>
</select>
</div>
<div id="account-table-btn-group">
<div id="account-table-btn-group d-flex justify-content-evenly">
<button id="edit-account-description-btn" type="button" class="btn btn-info">edit description</button>
<button id="overwrite-account-btn" type="button" class="btn btn-success">overwrite accounts</button>
<button id="overwrite-selected-account-btn" type="button" class="btn btn-outline-success">login</button>
</div>
Expand Down

0 comments on commit 8b4b581

Please sign in to comment.