mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: upgrade TankSort
This commit is contained in:
1 parent
87b6a36520
commit
4efdaaf7c9
9 files changed
+39
-42
No files matched your search
@@ -1,17 +1,15 @@
|
||||
import { map } from 'nanostores';
|
||||
import { Varuna } from 'varuna';
|
||||
import {
|
||||
type TankopediaSortBy,
|
||||
type TankopediaSortDirection,
|
||||
} from './tankopediaPersistent';
|
||||
|
||||
export interface TankopediaSort {
|
||||
export interface TankSort {
|
||||
by: TankopediaSortBy;
|
||||
direction: TankopediaSortDirection;
|
||||
}
|
||||
|
||||
export const initialTankopediaSort: TankopediaSort = {
|
||||
export const TankSort = new Varuna<TankSort>({
|
||||
by: 'meta.none',
|
||||
direction: 'descending',
|
||||
};
|
||||
|
||||
export const $tankopediaSort = map<TankopediaSort>(initialTankopediaSort);
|
||||
});
|
||||
Reference in new issue
Block a user