Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ You can customize the folder/file re-naming, as well as turn on/off features, an
{
"versions_json_url": "https://raw.githubusercontent.com/blawar/titledb/master/versions.json",
"versions_etag": "W/\"c3f5ecb3392d61:0\"",
"titles_json_url": "https://tinfoil.media/repo/db/titles.json",
"titles_json_url": "https://tinfoil.io/repo/db/titles.json",
"titles_etag": "W/\"4a4fcc163a92d61:0\"",
"prod_keys": "",
"folder": "",
Expand Down Expand Up @@ -109,7 +109,7 @@ The following template elements are supported:

### Console parameters

NOTE: parameters are only usable in command line mode, exept the parameter -m (mode) which will override the gui setting.
NOTE: parameters are only usable in command line mode, except the parameter -m (mode) which will override the gui setting.

| Name | Flag | Value | Description |
| -------------- | ---- | ----------- | ---------------------------------------------------------------------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion src/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (c *Console) Start() {
}

//1. load the titles JSON object
fmt.Println("Downlading latest switch titles json file")
fmt.Println("Downloading latest switch titles json file")
progressBar = progressbar.New(2)

filename := filepath.Join(c.baseFolder, settings.TITLE_JSON_FILENAME)
Expand Down
4 changes: 2 additions & 2 deletions src/db/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func LoadAndUpdateFile(url string, filePath string, etag string) (*os.File, stri
file, err = saveFile(bytes, filePath)
etag = newEtag
} else {
zap.S().Infof("ignoring new update [%v], reason - [mailformed json file]", url)
zap.S().Infof("ignoring new update [%v], reason - [malformed json file]", url)
}
} else {
zap.S().Infof("file [%v] was not downloaded, reason - [%v]", url, err)
Expand All @@ -51,7 +51,7 @@ func LoadAndUpdateFile(url string, filePath string, etag string) (*os.File, stri
//load file
file, err = os.Open(filePath)
if err != nil {
zap.S().Infof("ignoring new update [%v], reason - [mailformed json file]", url)
zap.S().Infof("ignoring new update [%v], reason - [malformed json file]", url)
return nil, "", err
}

Expand Down
32 changes: 19 additions & 13 deletions src/go.mod
Original file line number Diff line number Diff line change
@@ -1,37 +1,43 @@
module github.com/trembon/switch-library-manager

go 1.24
go 1.25.5

require (
github.com/asticode/go-astikit v0.52.0
github.com/asticode/go-astikit v0.57.1
github.com/asticode/go-astilectron v0.30.0
github.com/asticode/go-astilectron-bootstrap v0.4.14
github.com/avast/retry-go v3.0.0+incompatible
github.com/boltdb/bolt v1.3.1
github.com/jedib0t/go-pretty v4.3.0+incompatible
github.com/magiconair/properties v1.8.9
github.com/magiconair/properties v1.8.10
github.com/mcuadros/go-version v0.0.0-20190830083331-035f6764e8d2
github.com/schollz/progressbar/v3 v3.18.0
go.uber.org/zap v1.27.0
github.com/schollz/progressbar/v3 v3.19.0
go.uber.org/zap v1.27.1
robpike.io/nihongo v0.0.0-20230705220025-ab7f6184a918
)

require (
github.com/akavel/rsrc v0.10.2 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/asticode/go-astilectron-bundler v0.7.12 // indirect
github.com/asticode/go-bindata v1.0.0 // indirect
github.com/go-openapi/errors v0.22.0 // indirect
github.com/go-openapi/strfmt v0.23.0 // indirect
github.com/chengxilo/virtualterm v1.0.5 // indirect
github.com/clipperhouse/stringish v0.1.1 // indirect
github.com/clipperhouse/uax29/v2 v2.3.0 // indirect
github.com/go-openapi/errors v0.22.6 // indirect
github.com/go-openapi/strfmt v0.25.0 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/mattn/go-runewidth v0.0.19 // indirect
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/sam-kamerer/go-plister v1.2.0 // indirect
go.mongodb.org/mongo-driver v1.17.2 // indirect
github.com/stretchr/testify v1.11.1 // indirect
go.mongodb.org/mongo-driver v1.17.6 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/sys v0.30.0 // indirect
golang.org/x/term v0.29.0 // indirect
golang.org/x/net v0.48.0 // indirect
golang.org/x/sys v0.39.0 // indirect
golang.org/x/term v0.38.0 // indirect
golang.org/x/text v0.32.0 // indirect
)
148 changes: 40 additions & 108 deletions src/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/resources/app/lib/js/tabulator/modules/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var Ajax = function Ajax(table) {
this.progressiveLoad = false;
this.loading = false;

this.requestOrder = 0; //prevent requests comming out of sequence if overridden by another load request
this.requestOrder = 0; //prevent requests coming out of sequence if overridden by another load request
};

//initialize setup options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ ColumnCalcs.prototype.generateRow = function (pos, data) {
};
}

//ensure css class defintion is replicated to calculation cell
//ensure css class definition is replicated to calculation cell
self.genColumn.definition.cssClass = column.definition.cssClass;

//generate cell and assign to correct column
Expand Down
12 changes: 6 additions & 6 deletions src/resources/app/lib/js/tabulator/modules/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
var Edit = function Edit(table) {
this.table = table; //hold Tabulator object
this.currentCell = false; //hold currently editing cell
this.mouseClick = false; //hold mousedown state to prevent click binding being overriden by editor opening
this.mouseClick = false; //hold mousedown state to prevent click binding being overridden by editor opening
this.recursionBlock = false; //prevent focus recursion
this.invalidEdit = false;
this.editedCells = [];
Expand Down Expand Up @@ -204,7 +204,7 @@ Edit.prototype.edit = function (cell, e, forceEdit) {
return;
}

//handle successfull value change
//handle successful value change
function success(value) {
if (self.currentCell === cell) {
var valid = true;
Expand Down Expand Up @@ -498,7 +498,7 @@ Edit.prototype.editors = {
function onChange(e) {
if ((cellValue === null || typeof cellValue === "undefined") && input.value !== "" || input.value !== cellValue) {
if (success(input.value)) {
cellValue = input.value; //persist value if successfully validated incase editor is used as header filter
cellValue = input.value; //persist value if successfully validated in case editor is used as header filter
}
} else {
cancel();
Expand Down Expand Up @@ -572,7 +572,7 @@ Edit.prototype.editors = {
if ((cellValue === null || typeof cellValue === "undefined") && input.value !== "" || input.value !== cellValue) {

if (success(input.value)) {
cellValue = input.value; //persist value if successfully validated incase editor is used as header filter
cellValue = input.value; //persist value if successfully validated in case editor is used as header filter
}

setTimeout(function () {
Expand Down Expand Up @@ -697,7 +697,7 @@ Edit.prototype.editors = {

if (value !== cellValue) {
if (success(value)) {
cellValue = value; //persist value if successfully validated incase editor is used as header filter
cellValue = value; //persist value if successfully validated in case editor is used as header filter
}
} else {
cancel();
Expand Down Expand Up @@ -786,7 +786,7 @@ Edit.prototype.editors = {

if (value != cellValue) {
if (success(value)) {
cellValue = value; //persist value if successfully validated incase editor is used as header filter
cellValue = value; //persist value if successfully validated in case editor is used as header filter
}
} else {
cancel();
Expand Down
2 changes: 1 addition & 1 deletion src/resources/app/lib/js/tabulator/modules/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Export.prototype.headersToExportRows = function (columns) {
}
}

//calculate maximum header debth
//calculate maximum header depth
columns.forEach(function (column) {
if (column.depth > headerDepth) {
headerDepth = column.depth;
Expand Down
8 changes: 4 additions & 4 deletions src/resources/app/lib/js/tabulator/modules/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Filter.prototype.initializeColumn = function (column, value) {
field = column.getField(),
params;

//handle successfull value change
//handle successful value change
function success(value) {
var filterType = column.modules.filter.tagType == "input" && column.modules.filter.attrType == "text" || column.modules.filter.tagType == "textarea" ? "partial" : "match",
type = "",
Expand Down Expand Up @@ -289,7 +289,7 @@ Filter.prototype.generateHeaderFilterElement = function (column, initialValue, r
}
}

//prevent input and select elements from propegating click to column sorters etc
//prevent input and select elements from propagating click to column sorters etc
if (column.modules.filter.tagType == "input" || column.modules.filter.tagType == "select" || column.modules.filter.tagType == "textarea") {
editorElement.addEventListener("mousedown", function (e) {
e.stopPropagation();
Expand Down Expand Up @@ -328,7 +328,7 @@ Filter.prototype.showHeaderFilterElements = function () {
});
};

//programatically set focus of header filter
//programmatically set focus of header filter
Filter.prototype.setHeaderFilterFocus = function (column) {
if (column.modules.filter && column.modules.filter.headerElement) {
column.modules.filter.headerElement.focus();
Expand All @@ -346,7 +346,7 @@ Filter.prototype.getHeaderFilterValue = function (column) {
}
};

//programatically set value of header filter
//programmatically set value of header filter
Filter.prototype.setHeaderFilterValue = function (column, value) {
if (column) {
if (column.modules.filter && column.modules.filter.headerElement) {
Expand Down
10 changes: 5 additions & 5 deletions src/resources/app/lib/js/tabulator/modules/group_rows.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Group.prototype.scrollHeader = function (left) {

Group.prototype.getRowIndex = function (row) {};

//update row data to match grouping contraints
//update row data to match grouping constraints
Group.prototype.conformRowData = function (data) {
if (this.field) {
data[this.field] = this.key;
Expand Down Expand Up @@ -615,11 +615,11 @@ Group.prototype.getSubGroups = function (component) {
return output;
};

Group.prototype.getRows = function (compoment) {
Group.prototype.getRows = function (component) {
var output = [];

this.rows.forEach(function (row) {
output.push(compoment ? row.getComponent() : row);
output.push(component ? row.getComponent() : row);
});

return output;
Expand Down Expand Up @@ -875,11 +875,11 @@ GroupRows.prototype.getRows = function (rows) {
}
};

GroupRows.prototype.getGroups = function (compoment) {
GroupRows.prototype.getGroups = function (component) {
var groupComponents = [];

this.groupList.forEach(function (group) {
groupComponents.push(compoment ? group.getComponent() : group);
groupComponents.push(component ? group.getComponent() : group);
});

return groupComponents;
Expand Down
4 changes: 2 additions & 2 deletions src/resources/app/lib/js/tabulator/modules/moveable_rows.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ MoveRows.prototype.disconnectFromTables = function () {
});
};

//accept incomming connection
//accept incoming connection
MoveRows.prototype.connect = function (table, row) {
var self = this;
if (!this.connectedTable) {
Expand Down Expand Up @@ -490,7 +490,7 @@ MoveRows.prototype.connect = function (table, row) {
}
};

//close incomming connection
//close incoming connection
MoveRows.prototype.disconnect = function (table) {
var self = this;
if (table === this.connectedTable) {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/app/lib/js/tabulator/modules/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ Page.prototype.footerRedraw = function () {
}
};

//set the paramter names for pagination requests
//set the parameter names for pagination requests
Page.prototype.paginationDataSentNames = {
"page": "page",
"size": "size",
Expand Down
4 changes: 2 additions & 2 deletions src/resources/app/lib/js/tabulator/modules/persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Persistence.prototype.load = function (type, current) {
return data;
};

//retreive data from memory
//retrieve data from memory
Persistence.prototype.retreiveData = function (type) {
return this.readFunc ? this.readFunc(this.id, type) : false;
};
Expand Down Expand Up @@ -363,7 +363,7 @@ Persistence.prototype.parseColumns = function (columns) {
return definitions;
};

// read peristence information from storage
// read persistence information from storage
Persistence.prototype.readers = {
local: function local(id, type) {
var data = localStorage.getItem(id + "-" + type);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ ResizeColumns.prototype._mouseDown = function (e, column, handle) {
self.table.options.columnResized.call(self.table, column.getComponent());
}

e.stopPropagation(); //prevent resize from interfereing with movable columns
e.stopPropagation(); //prevent resize from interfering with movable columns

//block editor from taking action while resizing is taking place
if (self.startColumn.modules.edit) {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/app/lib/js/tabulator/modules/resize_rows.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ResizeRows.prototype._mouseDown = function (e, row, handle) {
self.table.options.rowResized.call(this.table, row.getComponent());
}

e.stopPropagation(); //prevent resize from interfereing with movable columns
e.stopPropagation(); //prevent resize from interfering with movable columns

//block editor from taking action while resizing is taking place
// if(self.startColumn.modules.edit){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var ResponsiveLayout = function ResponsiveLayout(table) {
this.collapseHandleColumn = false;
};

//generate resposive columns list
//generate responsive columns list
ResponsiveLayout.prototype.initialize = function () {
var self = this,
columns = [];
Expand All @@ -21,7 +21,7 @@ ResponsiveLayout.prototype.initialize = function () {
this.collapseStartOpen = this.table.options.responsiveLayoutCollapseStartOpen;
this.hiddenColumns = [];

//detemine level of responsivity for each column
//determine level of responsivity for each column
this.table.columnManager.columnsByIndex.forEach(function (column, i) {
if (column.modules.responsive) {
if (column.modules.responsive.order && column.modules.responsive.visible) {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/app/lib/js/tabulator/modules/sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ Sort.prototype.sorters = {

return emptyAlign;
} else {
console.error("Sort Error - 'datetime' sorter is dependant on moment.js");
console.error("Sort Error - 'datetime' sorter is dependent on moment.js");
}
},

Expand Down
Loading
Loading