Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
Project Page
Commits
faf563d4
Commit
faf563d4
authored
3 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
show only (re)deployed websites
parent
a0089a56
master
devel
testing
4 merge requests
!86
ignore ts built folder
,
!85
deployment
,
!84
prepare deployment
,
!82
show only (re)deployed websites
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routes/project.ts
+8
-2
routes/project.ts
with
8 additions
and
2 deletions
+8
-2
routes/project.ts
+
8
-
2
View file @
faf563d4
...
...
@@ -2,6 +2,7 @@
import
methods
from
'
../functions/methods
'
import
gitlab
from
'
../functions/gitlab
'
import
helpers
from
'
../functions/helpers
'
import
https
from
'
https
'
module
.
exports
=
function
(
app
:
any
,
lang
:
string
)
{
...
...
@@ -142,7 +143,7 @@ module.exports = function (app:any, lang:string) {
// Projektinformationen
app
.
get
(
'
/projektinformationen
'
,
async
function
(
req
:
any
,
res
:
any
){
let
pagesArr
=
[]
let
pagesArr
:
{
logo
:
any
;
name
:
any
;
weburl
:
any
;
desc
:
any
;
keywords
:
any
;
createdAt
:
any
;
lastUpdatedAt
:
any
;
}[]
=
[]
let
isProject
=
true
let
firstId
=
0
let
orderKeyword
=
req
.
query
.
sort
...
...
@@ -183,7 +184,12 @@ module.exports = function (app:any, lang:string) {
createdAt
:
pagesData
[
i
].
created_at
,
lastUpdatedAt
:
pagesData
[
i
].
last_activity_at
}
pagesArr
.
push
(
pages
)
https
.
get
(
pagesData
[
i
].
web_url
,
function
(
response
:
any
)
{
if
(
response
.
statusCode
>=
200
&&
response
.
statusCode
<=
299
)
{
pagesArr
.
push
(
pages
)
}
})
}
}
firstId
=
pagesData
[
pagesData
.
length
-
1
].
id
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets