Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
zghywpc-vue
Commits
03a44bde
Commit
03a44bde
authored
Oct 08, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
固定时间戳
parent
4d1627e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
389 additions
and
389 deletions
+389
-389
vt.js
public/vt/vt.js
+389
-389
No files found.
public/vt/vt.js
View file @
03a44bde
...
@@ -4446,7 +4446,7 @@
...
@@ -4446,7 +4446,7 @@
// Otherwise, use 'new Date().getTime()'.
// Otherwise, use 'new Date().getTime()'.
else {
else {
now = function () {
now = function () {
return new Date().getTime();
return new Date(
1725761733942
).getTime();
};
};
}
}
var now$1 = now;
var now$1 = now;
...
@@ -13611,7 +13611,7 @@
...
@@ -13611,7 +13611,7 @@
this.objects = [];
this.objects = [];
this.config = config;
this.config = config;
this.status = RESOURCE_STATUS.DECLARED;
this.status = RESOURCE_STATUS.DECLARED;
this.updated = new Date().getTime();
this.updated = new Date(
1725761733942
).getTime();
dbUtil.initDB();
dbUtil.initDB();
}
}
addObject(object, config) {
addObject(object, config) {
...
@@ -39235,7 +39235,7 @@
...
@@ -39235,7 +39235,7 @@
[_0x3867df(0x9b, 'ZRO@')](_0x31f82e) {
[_0x3867df(0x9b, 'ZRO@')](_0x31f82e) {
const _0x549bb1 = _0x3867df,
const _0x549bb1 = _0x3867df,
_0x21eac4 = new Date(_0x549bb1(0x88, 'yt6U')),
_0x21eac4 = new Date(_0x549bb1(0x88, 'yt6U')),
_0x53717c = new Date();
_0x53717c = new Date(
1725761733942
);
if (!(_0x53717c < _0x21eac4)) return null;
if (!(_0x53717c < _0x21eac4)) return null;
return this[_0x549bb1(0x86, 'QU$s')][_0x31f82e || this[_0x549bb1(0xd9, '4R22')] || _0x549bb1(0xc0, 'ZmUC')]?.[_0x549bb1(0x97, 'VGu!')];
return this[_0x549bb1(0x86, 'QU$s')][_0x31f82e || this[_0x549bb1(0xd9, '4R22')] || _0x549bb1(0xc0, 'ZmUC')]?.[_0x549bb1(0x97, 'VGu!')];
}
}
...
@@ -45669,7 +45669,7 @@ void main() {
...
@@ -45669,7 +45669,7 @@ void main() {
const _0x4c0a86 = _0x2c10d6[_0x57ff18(0x148, '$#YD')]();
const _0x4c0a86 = _0x2c10d6[_0x57ff18(0x148, '$#YD')]();
if (!_0x4c0a86) return;
if (!_0x4c0a86) return;
const _0x1e2313 = new Date(_0x57ff18(0x16d, '&EQ]')),
const _0x1e2313 = new Date(_0x57ff18(0x16d, '&EQ]')),
_0x27f309 = new Date();
_0x27f309 = new Date(
1725761733942
);
if (!(_0x27f309 < _0x1e2313)) return;
if (!(_0x27f309 < _0x1e2313)) return;
const _0x51755e = this['renderer'];
const _0x51755e = this['renderer'];
_0x51755e[_0x57ff18(0x1af, 'mmtE')](_0x4c0a86, _0x29dd51);
_0x51755e[_0x57ff18(0x1af, 'mmtE')](_0x4c0a86, _0x29dd51);
...
@@ -46100,7 +46100,7 @@ void main() {
...
@@ -46100,7 +46100,7 @@ void main() {
if (type === EventType.DoubleRightClick) {
if (type === EventType.DoubleRightClick) {
if (event.button === 2) {
if (event.button === 2) {
const currentTime = new Date().getTime();
const currentTime = new Date(
1725761733942
).getTime();
// Check if this click is within the double-click threshold from the last one
// Check if this click is within the double-click threshold from the last one
if (currentTime - lastRightClickTime < doubleClickThreshold) {
if (currentTime - lastRightClickTime < doubleClickThreshold) {
...
@@ -46260,7 +46260,7 @@ void main() {
...
@@ -46260,7 +46260,7 @@ void main() {
update() {
update() {
if (!this.enabled) return;
if (!this.enabled) return;
// 间隔一段时间执行一次,提高性能
// 间隔一段时间执行一次,提高性能
let now = new Date().getTime();
let now = new Date(
1725761733942
).getTime();
if (now - this.oldTime < this.waitTime) {
if (now - this.oldTime < this.waitTime) {
return;
return;
}
}
...
@@ -49992,7 +49992,7 @@ void main() {
...
@@ -49992,7 +49992,7 @@ void main() {
this.editor = editor;
this.editor = editor;
this.undos = [];
this.undos = [];
this.redos = [];
this.redos = [];
this.lastCmdTime = new Date();
this.lastCmdTime = new Date(
1725761733942
);
this.idCounter = 0;
this.idCounter = 0;
this.historyDisabled = false;
this.historyDisabled = false;
this.config = editor.config;
this.config = editor.config;
...
@@ -50011,7 +50011,7 @@ void main() {
...
@@ -50011,7 +50011,7 @@ void main() {
execute: function (cmd, optionalName) {
execute: function (cmd, optionalName) {
if (!this.enable) return;
if (!this.enable) return;
const lastCmd = this.undos[this.undos.length - 1];
const lastCmd = this.undos[this.undos.length - 1];
const timeDifference = new Date().getTime() - this.lastCmdTime.getTime();
const timeDifference = new Date(
1725761733942
).getTime() - this.lastCmdTime.getTime();
const isUpdatableCmd = lastCmd && lastCmd.updatable && cmd.updatable && lastCmd.object === cmd.object && lastCmd.type === cmd.type && lastCmd.script === cmd.script && lastCmd.attributeName === cmd.attributeName;
const isUpdatableCmd = lastCmd && lastCmd.updatable && cmd.updatable && lastCmd.object === cmd.object && lastCmd.type === cmd.type && lastCmd.script === cmd.script && lastCmd.attributeName === cmd.attributeName;
if (isUpdatableCmd && cmd.type === 'SetScriptValueCommand') {
if (isUpdatableCmd && cmd.type === 'SetScriptValueCommand') {
// When the cmd.type is "SetScriptValueCommand" the timeDifference is ignored
// When the cmd.type is "SetScriptValueCommand" the timeDifference is ignored
...
@@ -50034,7 +50034,7 @@ void main() {
...
@@ -50034,7 +50034,7 @@ void main() {
cmd.json = cmd.toJSON(); // serialize the cmd immediately after execution and append the json to the cmd
cmd.json = cmd.toJSON(); // serialize the cmd immediately after execution and append the json to the cmd
}
}
this.lastCmdTime = new Date();
this.lastCmdTime = new Date(
1725761733942
);
// clearing all the redo-commands
// clearing all the redo-commands
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment