Refactor TagDayIDValueSet
parent
0160a9b23d
commit
7e48d06cc3
|
@ -9,5 +9,5 @@ export default class GlobalMixin extends Vue {
|
|||
|
||||
public readonly c = constants.c;
|
||||
public readonly TagDayID = constants.TagDayID;
|
||||
public readonly TagDayIDValueSet = new Set(Object.values(this.TagDayID));
|
||||
public readonly TagDayIDValueSet = constants.TagDayIDValueSet;
|
||||
}
|
|
@ -175,6 +175,14 @@ export function convertFlags(photo: IPhoto) {
|
|||
}
|
||||
}
|
||||
|
||||
// Outside for set
|
||||
const TagDayID = {
|
||||
START: -(1 << 30),
|
||||
FOLDERS: -(1 << 30) + 1,
|
||||
TAGS: -(1 << 30) + 2,
|
||||
FACES: -(1 << 30) + 3,
|
||||
}
|
||||
|
||||
/** Global constants */
|
||||
export const constants = {
|
||||
c: {
|
||||
|
@ -189,12 +197,8 @@ export const constants = {
|
|||
FLAG_LEAVING: 1 << 8,
|
||||
},
|
||||
|
||||
TagDayID: {
|
||||
START: -(1 << 30),
|
||||
FOLDERS: -(1 << 30) + 1,
|
||||
TAGS: -(1 << 30) + 2,
|
||||
FACES: -(1 << 30) + 3,
|
||||
},
|
||||
TagDayID: TagDayID,
|
||||
TagDayIDValueSet: new Set(Object.values(TagDayID)),
|
||||
}
|
||||
|
||||
/** Cache store */
|
||||
|
|
Loading…
Reference in New Issue