Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
7fde6a42
Commit
7fde6a42
authored
Nov 16, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add create and update time
parent
d87c1685
Pipeline
#1264
passed with stages
in 12 minutes and 5 seconds
Changes
16
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
62 additions
and
14 deletions
+62
-14
data-manager/entities/Ban.js
data-manager/entities/Ban.js
+2
-1
data-manager/entities/Ban.ts
data-manager/entities/Ban.ts
+2
-1
data-manager/entities/BasePlayer.js
data-manager/entities/BasePlayer.js
+2
-1
data-manager/entities/BasePlayer.ts
data-manager/entities/BasePlayer.ts
+2
-1
data-manager/entities/CloudReplay.js
data-manager/entities/CloudReplay.js
+2
-1
data-manager/entities/CloudReplay.ts
data-manager/entities/CloudReplay.ts
+2
-1
data-manager/entities/CreateAndUpdateTimeBase.js
data-manager/entities/CreateAndUpdateTimeBase.js
+25
-0
data-manager/entities/CreateAndUpdateTimeBase.ts
data-manager/entities/CreateAndUpdateTimeBase.ts
+9
-0
data-manager/entities/DuelLog.js
data-manager/entities/DuelLog.js
+2
-1
data-manager/entities/DuelLog.ts
data-manager/entities/DuelLog.ts
+2
-1
data-manager/entities/RandomDuelBan.js
data-manager/entities/RandomDuelBan.js
+2
-1
data-manager/entities/RandomDuelBan.ts
data-manager/entities/RandomDuelBan.ts
+2
-1
data-manager/entities/RandomDuelScore.js
data-manager/entities/RandomDuelScore.js
+2
-1
data-manager/entities/RandomDuelScore.ts
data-manager/entities/RandomDuelScore.ts
+2
-1
data-manager/entities/User.js
data-manager/entities/User.js
+2
-1
data-manager/entities/User.ts
data-manager/entities/User.ts
+2
-1
No files found.
data-manager/entities/Ban.js
View file @
7fde6a42
...
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
...
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
exports
.
Ban
=
void
0
;
exports
.
Ban
=
void
0
;
const
typeorm_1
=
require
(
"
typeorm
"
);
const
typeorm_1
=
require
(
"
typeorm
"
);
let
Ban
=
class
Ban
{
const
CreateAndUpdateTimeBase_1
=
require
(
"
./CreateAndUpdateTimeBase
"
);
let
Ban
=
class
Ban
extends
CreateAndUpdateTimeBase_1
.
CreateAndUpdateTimeBase
{
};
};
__decorate
([
__decorate
([
typeorm_1
.
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
}),
typeorm_1
.
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
}),
...
...
data-manager/entities/Ban.ts
View file @
7fde6a42
import
{
Column
,
Entity
,
Index
,
PrimaryGeneratedColumn
,
Unique
}
from
"
typeorm
"
;
import
{
Column
,
Entity
,
Index
,
PrimaryGeneratedColumn
,
Unique
}
from
"
typeorm
"
;
import
{
CreateAndUpdateTimeBase
}
from
"
./CreateAndUpdateTimeBase
"
;
@
Entity
()
@
Entity
()
@
Unique
([
"
ip
"
,
"
name
"
])
@
Unique
([
"
ip
"
,
"
name
"
])
export
class
Ban
{
export
class
Ban
extends
CreateAndUpdateTimeBase
{
@
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
})
@
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
})
id
:
number
;
id
:
number
;
...
...
data-manager/entities/BasePlayer.js
View file @
7fde6a42
...
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
...
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
exports
.
BasePlayer
=
void
0
;
exports
.
BasePlayer
=
void
0
;
const
typeorm_1
=
require
(
"
typeorm
"
);
const
typeorm_1
=
require
(
"
typeorm
"
);
class
BasePlayer
{
const
CreateAndUpdateTimeBase_1
=
require
(
"
./CreateAndUpdateTimeBase
"
);
class
BasePlayer
extends
CreateAndUpdateTimeBase_1
.
CreateAndUpdateTimeBase
{
}
}
__decorate
([
__decorate
([
typeorm_1
.
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
}),
typeorm_1
.
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
}),
...
...
data-manager/entities/BasePlayer.ts
View file @
7fde6a42
import
{
Column
,
PrimaryGeneratedColumn
}
from
"
typeorm
"
;
import
{
Column
,
PrimaryGeneratedColumn
}
from
"
typeorm
"
;
import
{
CreateAndUpdateTimeBase
}
from
"
./CreateAndUpdateTimeBase
"
;
export
abstract
class
BasePlayer
{
export
abstract
class
BasePlayer
extends
CreateAndUpdateTimeBase
{
@
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
})
@
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
})
id
:
number
;
id
:
number
;
...
...
data-manager/entities/CloudReplay.js
View file @
7fde6a42
...
@@ -17,7 +17,8 @@ const typeorm_1 = require("typeorm");
...
@@ -17,7 +17,8 @@ const typeorm_1 = require("typeorm");
const
CloudReplayPlayer_1
=
require
(
"
./CloudReplayPlayer
"
);
const
CloudReplayPlayer_1
=
require
(
"
./CloudReplayPlayer
"
);
const
underscore_1
=
__importDefault
(
require
(
"
underscore
"
));
const
underscore_1
=
__importDefault
(
require
(
"
underscore
"
));
const
moment_1
=
__importDefault
(
require
(
"
moment
"
));
const
moment_1
=
__importDefault
(
require
(
"
moment
"
));
let
CloudReplay
=
class
CloudReplay
{
const
CreateAndUpdateTimeBase_1
=
require
(
"
./CreateAndUpdateTimeBase
"
);
let
CloudReplay
=
class
CloudReplay
extends
CreateAndUpdateTimeBase_1
.
CreateAndUpdateTimeBase
{
fromBuffer
(
buffer
)
{
fromBuffer
(
buffer
)
{
this
.
data
=
buffer
.
toString
(
"
base64
"
);
this
.
data
=
buffer
.
toString
(
"
base64
"
);
}
}
...
...
data-manager/entities/CloudReplay.ts
View file @
7fde6a42
...
@@ -2,13 +2,14 @@ import {Column, Entity, Index, OneToMany, PrimaryColumn} from "typeorm";
...
@@ -2,13 +2,14 @@ import {Column, Entity, Index, OneToMany, PrimaryColumn} from "typeorm";
import
{
CloudReplayPlayer
}
from
"
./CloudReplayPlayer
"
;
import
{
CloudReplayPlayer
}
from
"
./CloudReplayPlayer
"
;
import
_
from
"
underscore
"
;
import
_
from
"
underscore
"
;
import
moment
from
"
moment
"
;
import
moment
from
"
moment
"
;
import
{
CreateAndUpdateTimeBase
}
from
"
./CreateAndUpdateTimeBase
"
;
@
Entity
({
@
Entity
({
orderBy
:
{
orderBy
:
{
date
:
"
DESC
"
date
:
"
DESC
"
}
}
})
})
export
class
CloudReplay
{
export
class
CloudReplay
extends
CreateAndUpdateTimeBase
{
@
PrimaryColumn
({
unsigned
:
true
,
type
:
"
bigint
"
})
@
PrimaryColumn
({
unsigned
:
true
,
type
:
"
bigint
"
})
id
:
number
;
id
:
number
;
...
...
data-manager/entities/CreateAndUpdateTimeBase.js
0 → 100644
View file @
7fde6a42
"
use strict
"
;
var
__decorate
=
(
this
&&
this
.
__decorate
)
||
function
(
decorators
,
target
,
key
,
desc
)
{
var
c
=
arguments
.
length
,
r
=
c
<
3
?
target
:
desc
===
null
?
desc
=
Object
.
getOwnPropertyDescriptor
(
target
,
key
)
:
desc
,
d
;
if
(
typeof
Reflect
===
"
object
"
&&
typeof
Reflect
.
decorate
===
"
function
"
)
r
=
Reflect
.
decorate
(
decorators
,
target
,
key
,
desc
);
else
for
(
var
i
=
decorators
.
length
-
1
;
i
>=
0
;
i
--
)
if
(
d
=
decorators
[
i
])
r
=
(
c
<
3
?
d
(
r
)
:
c
>
3
?
d
(
target
,
key
,
r
)
:
d
(
target
,
key
))
||
r
;
return
c
>
3
&&
r
&&
Object
.
defineProperty
(
target
,
key
,
r
),
r
;
};
var
__metadata
=
(
this
&&
this
.
__metadata
)
||
function
(
k
,
v
)
{
if
(
typeof
Reflect
===
"
object
"
&&
typeof
Reflect
.
metadata
===
"
function
"
)
return
Reflect
.
metadata
(
k
,
v
);
};
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
exports
.
CreateAndUpdateTimeBase
=
void
0
;
const
typeorm_1
=
require
(
"
typeorm
"
);
class
CreateAndUpdateTimeBase
{
}
__decorate
([
typeorm_1
.
CreateDateColumn
(),
__metadata
(
"
design:type
"
,
Date
)
],
CreateAndUpdateTimeBase
.
prototype
,
"
createTime
"
,
void
0
);
__decorate
([
typeorm_1
.
UpdateDateColumn
(),
__metadata
(
"
design:type
"
,
Date
)
],
CreateAndUpdateTimeBase
.
prototype
,
"
updateTime
"
,
void
0
);
exports
.
CreateAndUpdateTimeBase
=
CreateAndUpdateTimeBase
;
//# sourceMappingURL=CreateAndUpdateTimeBase.js.map
\ No newline at end of file
data-manager/entities/CreateAndUpdateTimeBase.ts
0 → 100644
View file @
7fde6a42
import
{
CreateDateColumn
,
UpdateDateColumn
}
from
"
typeorm
"
;
export
abstract
class
CreateAndUpdateTimeBase
{
@
CreateDateColumn
()
createTime
:
Date
;
@
UpdateDateColumn
()
updateTime
:
Date
;
}
data-manager/entities/DuelLog.js
View file @
7fde6a42
...
@@ -17,7 +17,8 @@ const typeorm_1 = require("typeorm");
...
@@ -17,7 +17,8 @@ const typeorm_1 = require("typeorm");
const
DuelLogPlayer_1
=
require
(
"
./DuelLogPlayer
"
);
const
DuelLogPlayer_1
=
require
(
"
./DuelLogPlayer
"
);
const
moment_1
=
__importDefault
(
require
(
"
moment
"
));
const
moment_1
=
__importDefault
(
require
(
"
moment
"
));
const
underscore_1
=
__importDefault
(
require
(
"
underscore
"
));
const
underscore_1
=
__importDefault
(
require
(
"
underscore
"
));
let
DuelLog
=
class
DuelLog
{
const
CreateAndUpdateTimeBase_1
=
require
(
"
./CreateAndUpdateTimeBase
"
);
let
DuelLog
=
class
DuelLog
extends
CreateAndUpdateTimeBase_1
.
CreateAndUpdateTimeBase
{
getViewString
()
{
getViewString
()
{
const
viewPlayers
=
underscore_1
.
default
.
clone
(
this
.
players
);
const
viewPlayers
=
underscore_1
.
default
.
clone
(
this
.
players
);
viewPlayers
.
sort
((
p1
,
p2
)
=>
p1
.
pos
-
p2
.
pos
);
viewPlayers
.
sort
((
p1
,
p2
)
=>
p1
.
pos
-
p2
.
pos
);
...
...
data-manager/entities/DuelLog.ts
View file @
7fde6a42
...
@@ -2,13 +2,14 @@ import {Column, Entity, Index, OneToMany, PrimaryGeneratedColumn} from "typeorm"
...
@@ -2,13 +2,14 @@ import {Column, Entity, Index, OneToMany, PrimaryGeneratedColumn} from "typeorm"
import
{
DuelLogPlayer
}
from
"
./DuelLogPlayer
"
;
import
{
DuelLogPlayer
}
from
"
./DuelLogPlayer
"
;
import
moment
from
"
moment
"
;
import
moment
from
"
moment
"
;
import
_
from
"
underscore
"
;
import
_
from
"
underscore
"
;
import
{
CreateAndUpdateTimeBase
}
from
"
./CreateAndUpdateTimeBase
"
;
@
Entity
({
@
Entity
({
orderBy
:
{
orderBy
:
{
id
:
"
DESC
"
id
:
"
DESC
"
}
}
})
})
export
class
DuelLog
{
export
class
DuelLog
extends
CreateAndUpdateTimeBase
{
@
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
})
@
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
})
id
:
number
;
id
:
number
;
...
...
data-manager/entities/RandomDuelBan.js
View file @
7fde6a42
...
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
...
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
exports
.
RandomDuelBan
=
void
0
;
exports
.
RandomDuelBan
=
void
0
;
const
typeorm_1
=
require
(
"
typeorm
"
);
const
typeorm_1
=
require
(
"
typeorm
"
);
let
RandomDuelBan
=
class
RandomDuelBan
{
const
CreateAndUpdateTimeBase_1
=
require
(
"
./CreateAndUpdateTimeBase
"
);
let
RandomDuelBan
=
class
RandomDuelBan
extends
CreateAndUpdateTimeBase_1
.
CreateAndUpdateTimeBase
{
setNeedTip
(
need
)
{
setNeedTip
(
need
)
{
this
.
needTip
=
need
?
1
:
0
;
this
.
needTip
=
need
?
1
:
0
;
}
}
...
...
data-manager/entities/RandomDuelBan.ts
View file @
7fde6a42
import
{
Column
,
Entity
,
PrimaryColumn
}
from
"
typeorm
"
;
import
{
Column
,
Entity
,
PrimaryColumn
}
from
"
typeorm
"
;
import
{
CreateAndUpdateTimeBase
}
from
"
./CreateAndUpdateTimeBase
"
;
@
Entity
()
@
Entity
()
export
class
RandomDuelBan
{
export
class
RandomDuelBan
extends
CreateAndUpdateTimeBase
{
@
PrimaryColumn
({
type
:
"
varchar
"
,
length
:
64
})
@
PrimaryColumn
({
type
:
"
varchar
"
,
length
:
64
})
ip
:
string
;
ip
:
string
;
...
...
data-manager/entities/RandomDuelScore.js
View file @
7fde6a42
...
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
...
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
exports
.
RandomDuelScore
=
void
0
;
exports
.
RandomDuelScore
=
void
0
;
const
typeorm_1
=
require
(
"
typeorm
"
);
const
typeorm_1
=
require
(
"
typeorm
"
);
let
RandomDuelScore
=
class
RandomDuelScore
{
const
CreateAndUpdateTimeBase_1
=
require
(
"
./CreateAndUpdateTimeBase
"
);
let
RandomDuelScore
=
class
RandomDuelScore
extends
CreateAndUpdateTimeBase_1
.
CreateAndUpdateTimeBase
{
getDisplayName
()
{
getDisplayName
()
{
return
this
.
name
.
split
(
"
$
"
)[
0
];
return
this
.
name
.
split
(
"
$
"
)[
0
];
}
}
...
...
data-manager/entities/RandomDuelScore.ts
View file @
7fde6a42
import
{
Column
,
Entity
,
Index
,
PrimaryColumn
}
from
"
typeorm
"
;
import
{
Column
,
Entity
,
Index
,
PrimaryColumn
}
from
"
typeorm
"
;
import
{
CreateAndUpdateTimeBase
}
from
"
./CreateAndUpdateTimeBase
"
;
@
Entity
()
@
Entity
()
export
class
RandomDuelScore
{
export
class
RandomDuelScore
extends
CreateAndUpdateTimeBase
{
@
PrimaryColumn
({
type
:
"
varchar
"
,
length
:
20
})
@
PrimaryColumn
({
type
:
"
varchar
"
,
length
:
20
})
name
:
string
;
name
:
string
;
...
...
data-manager/entities/User.js
View file @
7fde6a42
...
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
...
@@ -11,7 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
exports
.
User
=
void
0
;
exports
.
User
=
void
0
;
const
typeorm_1
=
require
(
"
typeorm
"
);
const
typeorm_1
=
require
(
"
typeorm
"
);
let
User
=
class
User
{
const
CreateAndUpdateTimeBase_1
=
require
(
"
./CreateAndUpdateTimeBase
"
);
let
User
=
class
User
extends
CreateAndUpdateTimeBase_1
.
CreateAndUpdateTimeBase
{
};
};
__decorate
([
__decorate
([
typeorm_1
.
PrimaryColumn
({
type
:
"
varchar
"
,
length
:
128
}),
typeorm_1
.
PrimaryColumn
({
type
:
"
varchar
"
,
length
:
128
}),
...
...
data-manager/entities/User.ts
View file @
7fde6a42
import
{
Column
,
Entity
,
PrimaryColumn
}
from
"
typeorm
"
;
import
{
Column
,
Entity
,
PrimaryColumn
}
from
"
typeorm
"
;
import
{
CreateAndUpdateTimeBase
}
from
"
./CreateAndUpdateTimeBase
"
;
@
Entity
()
@
Entity
()
export
class
User
{
export
class
User
extends
CreateAndUpdateTimeBase
{
@
PrimaryColumn
({
type
:
"
varchar
"
,
length
:
128
})
@
PrimaryColumn
({
type
:
"
varchar
"
,
length
:
128
})
key
:
string
;
key
:
string
;
...
...
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