fixing sorting in webui
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
[serverConfig]
|
[serverConfig]
|
||||||
|
|
||||||
ServerPort = ":8000" #leave format as is it expects a string with colon
|
ServerPort = ":8000" #leave format as is it expects a string with colon
|
||||||
ServerAddr = "192.168.1.6" #Put in the IP address you want to bind to
|
ServerAddr = "192.168.1.8" #Put in the IP address you want to bind to
|
||||||
LogLevel = "Debug" # Options = Debug, Info, Warn, Error, Fatal, Panic
|
LogLevel = "Info" # Options = Debug, Info, Warn, Error, Fatal, Panic
|
||||||
LogOutput = "file" #Options = file, stdout #file will print it to logs/server.log
|
LogOutput = "stdout" #Options = file, stdout #file will print it to logs/server.log
|
||||||
|
|
||||||
SeedRatioStop = 1.50 #automatically stops the torrent after it reaches this seeding ratio
|
SeedRatioStop = 1.50 #automatically stops the torrent after it reaches this seeding ratio
|
||||||
|
|
||||||
|
@@ -1,47 +0,0 @@
|
|||||||
package engine
|
|
||||||
|
|
||||||
import (
|
|
||||||
"testing"
|
|
||||||
|
|
||||||
"github.com/asdine/storm"
|
|
||||||
Settings "github.com/deranjer/goTorrent/settings"
|
|
||||||
Storage "github.com/deranjer/goTorrent/storage"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TestMoveAndLeaveSymlink(t *testing.T) {
|
|
||||||
type args struct {
|
|
||||||
config Settings.FullClientSettings
|
|
||||||
tStorage Storage.TorrentLocal
|
|
||||||
db *storm.DB
|
|
||||||
}
|
|
||||||
tests := []struct {
|
|
||||||
name string
|
|
||||||
args args
|
|
||||||
}{
|
|
||||||
// TODO: Add test cases.
|
|
||||||
}
|
|
||||||
for _, tt := range tests {
|
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
|
||||||
MoveAndLeaveSymlink(tt.args.config, tt.args.tStorage, tt.args.db)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func Test_notifyUser(t *testing.T) {
|
|
||||||
type args struct {
|
|
||||||
tStorage Storage.TorrentLocal
|
|
||||||
config Settings.FullClientSettings
|
|
||||||
db *storm.DB
|
|
||||||
}
|
|
||||||
tests := []struct {
|
|
||||||
name string
|
|
||||||
args args
|
|
||||||
}{
|
|
||||||
// TODO: Add test cases.
|
|
||||||
}
|
|
||||||
for _, tt := range tests {
|
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
|
||||||
notifyUser(tt.args.tStorage, tt.args.config, tt.args.db)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
@@ -136,7 +136,7 @@ class TorrentListTable extends React.Component {
|
|||||||
<TableColumnReordering order={this.state.columnOrder} onOrderChange={this.changeColumnOrder} />
|
<TableColumnReordering order={this.state.columnOrder} onOrderChange={this.changeColumnOrder} />
|
||||||
<IntegratedSelection />
|
<IntegratedSelection />
|
||||||
<TableSelection selectByRowClick highlightSelected showSelectAll />
|
<TableSelection selectByRowClick highlightSelected showSelectAll />
|
||||||
<TableHeaderRow allowSorting allowResizing allowDragging />
|
<TableHeaderRow showSortingControls allowSorting allowResizing allowDragging />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Paper>
|
</Paper>
|
||||||
);
|
);
|
||||||
|
@@ -132718,7 +132718,7 @@ var TorrentListTable = function (_React$Component) {
|
|||||||
_react2.default.createElement(_dxReactGridMaterialUi.TableColumnReordering, { order: this.state.columnOrder, onOrderChange: this.changeColumnOrder }),
|
_react2.default.createElement(_dxReactGridMaterialUi.TableColumnReordering, { order: this.state.columnOrder, onOrderChange: this.changeColumnOrder }),
|
||||||
_react2.default.createElement(_dxReactGrid.IntegratedSelection, null),
|
_react2.default.createElement(_dxReactGrid.IntegratedSelection, null),
|
||||||
_react2.default.createElement(_dxReactGridMaterialUi.TableSelection, { selectByRowClick: true, highlightSelected: true, showSelectAll: true }),
|
_react2.default.createElement(_dxReactGridMaterialUi.TableSelection, { selectByRowClick: true, highlightSelected: true, showSelectAll: true }),
|
||||||
_react2.default.createElement(_dxReactGridMaterialUi.TableHeaderRow, { allowSorting: true, allowResizing: true, allowDragging: true })
|
_react2.default.createElement(_dxReactGridMaterialUi.TableHeaderRow, { showSortingControls: true, allowSorting: true, allowResizing: true, allowDragging: true })
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user