Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
818
Issues
818
List
Boards
Labels
Service Desk
Milestones
Merge Requests
74
Merge Requests
74
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Compare Revisions
b07ca6b8feab79bc8e96a47069d4eab9c72b9d4d...62cb13d848a49475f38e3c639a5c842289761553
Source
62cb13d848a49475f38e3c639a5c842289761553
Select Git revision
...
Target
b07ca6b8feab79bc8e96a47069d4eab9c72b9d4d
Select Git revision
Compare
Commits (5)
(feat): use gitlab environments vs commit message
· 4a846f0e
Mark Harding
authored
1 day ago
4a846f0e
(chore): reduce notifications to 12
· 19b1963d
Mark Harding
authored
8 hours ago
19b1963d
(feat): upgrade homepage experiment to full userbase
· 1d9aa9fa
Mark Harding
authored
8 hours ago
1d9aa9fa
(fix): deploy EN still
· 9adda44a
Mark Harding
authored
2 hours ago
9adda44a
Merge branch 'master' of gitlab.com:minds/front into epic/referrals
· 62cb13d8
Olivia Madrid
authored
47 minutes ago
62cb13d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
87 deletions
+32
-87
.gitlab-ci.yml
.gitlab-ci.yml
+31
-19
homepage.component.html
src/app/modules/homepage/homepage.component.html
+0
-67
notifications.component.ts
src/app/modules/notifications/notifications.component.ts
+1
-1
No files found.
.gitlab-ci.yml
View file @
62cb13d8
...
...
@@ -12,7 +12,8 @@ stages:
cache
:
key
:
"
$CI_COMMIT_REF_SLUG"
paths
:
-
dist
-
dist/en
-
dist/vi
policy
:
pull
test
:
...
...
@@ -22,7 +23,7 @@ test:
-
npm install
# Should be cached...
-
npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
build:
staging
:
build:
review
:
stage
:
build
script
:
-
npm install
# TODO: Why is this needed?
...
...
@@ -35,9 +36,6 @@ build:staging:
paths
:
-
dist
policy
:
push
only
:
variables
:
-
$CI_COMMIT_MESSAGE =~ /-subdomain/
except
:
refs
:
-
master
...
...
@@ -55,7 +53,7 @@ build:production:en:
cache
:
key
:
"
$CI_COMMIT_REF_SLUG"
paths
:
-
dist
-
dist
/en
policy
:
push
only
:
refs
:
...
...
@@ -73,7 +71,7 @@ build:production:i18n:
cache
:
key
:
"
$CI_COMMIT_REF_SLUG"
paths
:
-
dist
-
dist
/vi
policy
:
push
only
:
refs
:
...
...
@@ -87,41 +85,55 @@ prepare:
-
docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
-
docker build -t $CI_REGISTRY_IMAGE/front-init:$CI_BUILD_REF -f containers/front-init/Dockerfile dist/.
-
docker push $CI_REGISTRY_IMAGE/front-init:$CI_BUILD_REF
environment
:
name
:
staging
except
:
refs
:
-
master
-
test/gitlab-ci
deploy:
staging
:
deploy:
review
:
stage
:
deploy
image
:
minds/helm-eks:latest
script
:
-
aws eks update-kubeconfig --name=sandbox
-
STAGING_SUBDOMAIN=$(echo $CI_COMMIT_MESSAGE | sed -n 's/.* -subdomain=\([^ ]*\).*/\1/p')
-
echo "Subdomain will be setup at $STAGING_SUBDOMAIN"
-
git clone --branch=sandbox-wip https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/minds/helm-charts.git
-
"
helm
upgrade
\
--install
\
--reuse-values
\
--set
frontInit.image.repository=$CI_REGISTRY_IMAGE/front-init
\
--set
frontInit.image.tag=$CI_BUILD_REF
\
--set
domain=$
STAGING_SUBDOMAIN.$STAGING
_DOMAIN
\
--set
elasticsearch.clusterName=$
STAGING_SUBDOMAIN
-elasticsearch
\
--set
domain=$
CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE
_DOMAIN
\
--set
elasticsearch.clusterName=$
CI_BUILD_REF_SLUG-
-elasticsearch
\
--wait
\
$
STAGING_SUBDOMAIN
\
$
CI_BUILD_REF_SLUG
\
./helm-charts/minds"
environment
:
name
:
staging
only
:
variables
:
-
$CI_COMMIT_MESSAGE =~ /-subdomain/
name
:
review/$CI_COMMIT_REF_NAME
url
:
https://$CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN
on_stop
:
deploy:review:stop
except
:
refs
:
-
master
-
test/gitlab-ci
deploy:review:stop
:
stage
:
deploy
image
:
minds/helm-eks:latest
script
:
-
aws eks update-kubeconfig --name=sandbox
-
helm del --purge $CI_BUILD_REF_SLUG
environment
:
name
:
review/$CI_COMMIT_REF_NAME
url
:
https://$CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN
action
:
stop
variables
:
GIT_STRATEGY
:
none
when
:
manual
except
:
refs
:
-
master
-
test/gitlab-ci
deploy:production
:
stage
:
deploy
image
:
minds/ci:latest
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/homepage/homepage.component.html
View file @
62cb13d8
...
...
@@ -42,73 +42,6 @@
</section>
<ng-container
*
mExperiment=
"'Homepage200619';bucket:'base'"
>
<section
class=
"m-homepage--section m-homepage"
style=
"padding-top:0; padding-bottom: 0;"
>
<div
class=
"m-homepage--section--grid"
>
<h2
style=
"text-align: center; width: 100%"
i18n=
"@@MINDS__HOME__HOMEPAGE__OUT_CORE_PRINCIPLES"
>
Our core principles
</h2>
</div>
<div
class=
"m-homepage--section--grid"
>
<div
class=
"m-homepage--section--grid-col"
>
<i
class=
"material-icons"
>
language
</i>
<h4
class=
""
i18n=
"@@HOMEPAGE__NONPARTISAN_SUBTITLE"
>
Nonpartisan (r)evolution of ideas and
<b>
global consciousness
</b>
</h4>
</div>
<div
class=
"m-homepage--section--grid-col"
>
<i
class=
"material-icons"
>
record_voice_over
</i>
<h4
class=
""
i18n=
"@@HOMEPAGE__REAL_WORLD_SOLUTIONS_SUBTITLE"
>
<b>
Real world solutions
</b>
with free speech,
co-ownership and open discourse
</h4>
</div>
<div
class=
"m-homepage--section--grid-col"
>
<i
class=
"material-icons"
>
favorite
</i>
<h4
class=
""
i18n=
"@@HOMEPAGE__PRIVACY_AND_TRANSPARENCY_SUBTITLE"
>
Privacy and transparency with encryption and
<b>
open source software
</b>
</h4>
</div>
</div>
</section>
<section
class=
"m-marketing--section"
style=
"padding-top: 8px; padding-bottom: 16px;"
>
<div
class=
"m-blockchain--marketing--links"
>
<a
class=
"m-btn m-btn--slim m-btn--action"
target=
"_blank"
href=
"https://cdn-assets.minds.com/front/dist/assets/documents/Whitepaper-v0.3.pdf"
>
Whitepaper (PDF)
</a>
<a
class=
"m-btn m-btn--slim m-btn--action"
target=
"_blank"
routerLink=
"/tokens"
>
Get Tokens
</a>
</div>
</section>
<span
class=
"mdl-color--grey-100"
style=
"width: 100%; height: 1px; display: block;"
></span>
<div
class=
"mdl-grid mdl-grid--no-spacing m-homepage--stream"
>
<h4
class=
"mdl-color-text--blue-grey-200 mdl-cell--12-col"
i18n=
"@@HOMEPAGE__FEATURED_POSTS_TITLE"
>
Featured Posts
</h4>
<section
class=
"mdl-cell mdl-cell--4-col"
>
<minds-activity
[
object
]="
activity
"
*
ngFor=
"let activity of stream[1]"
></minds-activity>
</section>
<section
class=
"mdl-cell mdl-cell--4-col"
>
<minds-activity
[
object
]="
activity
"
*
ngFor=
"let activity of stream[2]"
></minds-activity>
</section>
<section
class=
"mdl-cell mdl-cell--4-col"
>
<minds-activity
[
object
]="
activity
"
*
ngFor=
"let activity of stream[3]"
></minds-activity>
</section>
<div
[
hidden
]="!
inProgress
"
style=
"width:100%; text-align:center; "
>
<div
class=
"mdl-spinner mdl-js-spinner is-active"
[
mdl
]
style=
"margin: 16px auto;"
></div>
</div>
<div
class=
"m-homepage--fader"
[
hidden
]="
inProgress
"
*
ngIf=
"false"
>
<div
class=
"m-homepage--fader--load-more"
(
click
)="
loadStream
()"
i18n=
"@@MINDS__HOME__HOMEPAGE__SEE_MORE_ACTION"
>
Click To See more
</div>
</div>
</div>
</ng-container>
<div
class=
"mdl-grid mdl-grid--no-spacing m-homepage--footer"
>
<section
class=
"mdl-cell mdl-cell--12-col m-footer"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/notifications/notifications.component.ts
View file @
62cb13d8
...
...
@@ -94,7 +94,7 @@ export class NotificationsComponent {
this
.
inProgress
=
true
;
this
.
client
.
get
(
`api/v1/notifications/
${
this
.
_filter
}
`
,
{
limit
:
24
,
offset
:
this
.
offset
})
this
.
client
.
get
(
`api/v1/notifications/
${
this
.
_filter
}
`
,
{
limit
:
12
,
offset
:
this
.
offset
})
.
then
((
data
:
any
)
=>
{
if
(
!
data
.
notifications
)
{
...
...
This diff is collapsed.
Click to expand it.