Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
840
Issues
840
List
Boards
Labels
Service Desk
Milestones
Merge Requests
43
Merge Requests
43
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
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
523591815b83d5cb1e0591b2e8c06104e1f1721b...8fa9d9731c53ee1851bc34d767a4381f7932b993
Source
8fa9d9731c53ee1851bc34d767a4381f7932b993
Select Git revision
...
Target
523591815b83d5cb1e0591b2e8c06104e1f1721b
Select Git revision
Compare
Commits (2)
(feat): use consistent class names
· a6a060b0
Marcelo Rivera
authored
1 hour ago
a6a060b0
(fix): reset error when trying to save again
· 8fa9d973
Marcelo Rivera
authored
55 minutes ago
8fa9d973
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
113 additions
and
111 deletions
+113
-111
channel.component.html
src/app/modules/pro/channel/channel.component.html
+2
-2
channel.component.scss
src/app/modules/pro/channel/channel.component.scss
+4
-4
hamburger-menu.component.html
.../pro/channel/hamburger-menu/hamburger-menu.component.html
+14
-14
hamburger-menu.component.scss
.../pro/channel/hamburger-menu/hamburger-menu.component.scss
+7
-7
home.component.html
src/app/modules/pro/channel/home/home.component.html
+6
-6
home.component.scss
src/app/modules/pro/channel/home/home.component.scss
+8
-8
login.component.html
src/app/modules/pro/channel/login/login.component.html
+6
-6
login.component.scss
src/app/modules/pro/channel/login/login.component.scss
+7
-7
subscribe-button.component.html
.../channel/subscribe-button/subscribe-button.component.html
+2
-2
subscribe-button.component.scss
.../channel/subscribe-button/subscribe-button.component.scss
+2
-2
subscription.component.html
...ules/pro/channel/subscription/subscription.component.html
+2
-2
subscription.components.scss
...les/pro/channel/subscription/subscription.components.scss
+1
-1
modal.component.html
...odules/pro/channel/unsubscribe-modal/modal.component.html
+1
-1
modal.component.scss
...odules/pro/channel/unsubscribe-modal/modal.component.scss
+2
-2
settings.component.html
src/app/modules/pro/settings/settings.component.html
+35
-35
settings.component.scss
src/app/modules/pro/settings/settings.component.scss
+11
-11
settings.component.ts
src/app/modules/pro/settings/settings.component.ts
+3
-1
No files found.
src/app/modules/pro/channel/channel.component.html
View file @
8fa9d973
<div
class=
"m-pro
--
channel"
*ngIf=
"channel"
>
<div
class=
"m-pro
__
channel"
*ngIf=
"channel"
>
<div
class=
"m-proChannel__topbar"
>
<img
class=
"m-proChannelTopbar__logo"
...
...
@@ -6,7 +6,7 @@
[routerLink]=
"homeRouterLink"
/>
<div
class=
"m-proChannelTopbar__
S
earchBox"
>
<div
class=
"m-proChannelTopbar__
s
earchBox"
>
<m-pro
__searchBox
[(query)]=
"query"
(onSearch)=
"search()"
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/channel.component.scss
View file @
8fa9d973
...
...
@@ -59,8 +59,8 @@ m-pro--channel {
}
@media
screen
and
(
max-width
:
$max-mobile
)
{
.m-pro
--
channel
{
.m-proChannelTopbar__
S
earchBox
{
.m-pro
__
channel
{
.m-proChannelTopbar__
s
earchBox
{
display
:
none
;
}
...
...
@@ -70,7 +70,7 @@ m-pro--channel {
}
}
.m-pro
--
channel
{
.m-pro
__
channel
{
max-width
:
1296px
;
margin
:
0
auto
;
display
:
grid
;
...
...
@@ -107,7 +107,7 @@ m-pro--channel {
padding
:
0
16px
0
0
;
}
.m-proChannelTopbar__
S
earchBox
{
.m-proChannelTopbar__
s
earchBox
{
margin
:
0
16px
;
@media
screen
and
(
max-width
:
1081px
)
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/hamburger-menu/hamburger-menu.component.html
View file @
8fa9d973
<a
class=
"m-pro
__hamburger-m
enu__trigger"
(click)=
"toggleMenu()"
>
<a
class=
"m-pro
HamburgerM
enu__trigger"
(click)=
"toggleMenu()"
>
<i
class=
"material-icons"
>
menu
</i>
</a>
<div
class=
"m-pro
__hamburger-m
enu__menu"
>
<a
class=
"m-pro
__hamburger-m
enu__close"
(click)=
"closeMenu()"
>
<div
class=
"m-pro
HamburgerM
enu__menu"
>
<a
class=
"m-pro
HamburgerM
enu__close"
(click)=
"closeMenu()"
>
<i
class=
"material-icons"
>
close
</i>
</a>
<ul>
<li
class=
"m-pro
__hamburger-menu-m
enu__logo"
*ngIf=
"channel"
>
<li
class=
"m-pro
HamburgerM
enu__logo"
*ngIf=
"channel"
>
<img
[routerLink]=
"homeRouterLink"
[src]=
"channel.pro_settings.logo_image"
...
...
@@ -17,7 +17,7 @@
</li>
<li
class=
"m-pro
__hamburger-menu-m
enu__subscribe"
class=
"m-pro
HamburgerM
enu__subscribe"
*ngIf=
"currentUser?.guid != channel?.guid"
>
<m-pro
__subscribeButton
(onAction)=
"closeMenu()"
></m-pro
__subscribeButton
>
...
...
@@ -26,7 +26,7 @@
<li>
<a
[routerLink]=
"feedRouterLink"
routerLinkActive=
"m-pro
__hamburger-menu-m
enu__item--active"
routerLinkActive=
"m-pro
HamburgerM
enu__item--active"
(click)=
"closeMenu()"
i18n
>
Feed
</a
...
...
@@ -36,7 +36,7 @@
<li>
<a
[routerLink]=
"videosRouterLink"
routerLinkActive=
"m-pro
__hamburger-menu-m
enu__item--active"
routerLinkActive=
"m-pro
HamburgerM
enu__item--active"
(click)=
"closeMenu()"
i18n
>
Videos
</a
...
...
@@ -46,7 +46,7 @@
<li>
<a
[routerLink]=
"imagesRouterLink"
routerLinkActive=
"m-pro
__hamburger-menu-m
enu__item--active"
routerLinkActive=
"m-pro
HamburgerM
enu__item--active"
(click)=
"closeMenu()"
i18n
>
Images
</a
...
...
@@ -56,7 +56,7 @@
<li>
<a
[routerLink]=
"articlesRouterLink"
routerLinkActive=
"m-pro
__hamburger-menu-m
enu__item--active"
routerLinkActive=
"m-pro
HamburgerM
enu__item--active"
(click)=
"closeMenu()"
i18n
>
Articles
</a
...
...
@@ -66,7 +66,7 @@
<li>
<a
[routerLink]=
"groupsRouterLink"
routerLinkActive=
"m-pro
__hamburger-menu-m
enu__item--active"
routerLinkActive=
"m-pro
HamburgerM
enu__item--active"
(click)=
"closeMenu()"
i18n
>
Groups
</a
...
...
@@ -79,7 +79,7 @@
</a>
</li>
<li
class=
"m-pro
__hamburger-menu-menu__search-b
ox"
>
<li
class=
"m-pro
HamburgerMenu__searchB
ox"
>
<m-pro
__searchBox
[query]=
"query"
(queryChange)=
"queryChange.emit($event)"
...
...
@@ -88,18 +88,18 @@
></m-pro
__searchBox
>
</li>
<li
class=
"m-pro
__hamburger-menu-m
enu__spacer"
></li>
<li
class=
"m-pro
HamburgerM
enu__spacer"
></li>
<ng-container
*ngIf=
"items && items.length"
>
<li
*ngFor=
"let item of items"
>
<a
[class.m-pro
__hamburger-menu-m
enu__item--active]=
"item.isActive()"
[class.m-pro
HamburgerM
enu__item--active]=
"item.isActive()"
(click)=
"item.onClick(); closeMenu()"
>
{{ item.label }}
</a
>
</li>
<li
class=
"m-pro
__hamburger-menu-m
enu__spacer"
></li>
<li
class=
"m-pro
HamburgerM
enu__spacer"
></li>
</ng-container>
</ul>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/hamburger-menu/hamburger-menu.component.scss
View file @
8fa9d973
m-pro__hamburger-menu
{
position
:
relative
;
.m-pro
__hamburger-m
enu__menu
{
.m-pro
HamburgerM
enu__menu
{
right
:
-110%
;
visibility
:
hidden
;
...
...
@@ -21,7 +21,7 @@ m-pro__hamburger-menu {
visibility
:
visible
;
}
.m-pro
__hamburger-m
enu__close
{
.m-pro
HamburgerM
enu__close
{
position
:
absolute
;
top
:
30px
;
right
:
40px
;
...
...
@@ -49,7 +49,7 @@ m-pro__hamburger-menu {
font-weight
:
700
;
letter-spacing
:
1px
;
&
.m-pro
__hamburger-menu-m
enu__logo
{
&
.m-pro
HamburgerM
enu__logo
{
height
:
100px
;
>
img
{
...
...
@@ -59,7 +59,7 @@ m-pro__hamburger-menu {
}
}
&
.m-pro
__hamburger-menu-m
enu__subscribe
{
&
.m-pro
HamburgerM
enu__subscribe
{
padding
:
0
0
16px
;
text-align
:
center
;
...
...
@@ -69,7 +69,7 @@ m-pro__hamburger-menu {
}
}
&
.m-pro
__hamburger-menu-menu__search-b
ox
{
&
.m-pro
HamburgerMenu__searchB
ox
{
>
m-pro__searchbox
{
width
:
100%
;
display
:
block
;
...
...
@@ -82,7 +82,7 @@ m-pro__hamburger-menu {
}
}
&
.m-pro
__hamburger-menu-m
enu__spacer
{
&
.m-pro
HamburgerM
enu__spacer
{
height
:
0
;
border-top
:
1px
solid
var
(
--
m-pro--text-color
);
margin
:
16px
0
;
...
...
@@ -94,7 +94,7 @@ m-pro__hamburger-menu {
padding
:
12px
0
;
display
:
block
;
&
.m-pro
__hamburger-menu-m
enu__item--active
{
&
.m-pro
HamburgerM
enu__item--active
{
color
:
var
(
--
m-pro--primary-color
)
!
important
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/home/home.component.html
View file @
8fa9d973
<div
class=
"m-pro
--channel-
home"
>
<div
class=
"m-pro
Channel__
home"
>
<m-pro--channel--categories
[showAllTag]=
"false"
[selectedHashtag]=
"''"
(onSelectTag)=
"navigateToCategory($event)"
></m-pro--channel--categories>
<div
class=
"m-pro
--channel-home--
section"
*ngIf=
"featuredContent?.length"
>
<div
class=
"m-pro
--channel-home--featured-c
ontent"
>
<div
class=
"m-pro
ChannelHome__
section"
*ngIf=
"featuredContent?.length"
>
<div
class=
"m-pro
ChannelHome__featuredC
ontent"
>
<m-pro--channel-tile
*ngFor=
"let entity of featuredContent"
[entity]=
"entity"
...
...
@@ -15,14 +15,14 @@
</div>
</div>
<div
class=
"m-pro
--channel-home--
section"
*ngFor=
"let category of categories"
>
<div
class=
"m-pro
ChannelHome__
section"
*ngFor=
"let category of categories"
>
<h2
i18n
>
<a
[routerLink]=
"getCategoryRoute(category.tag?.tag)"
>
{{
category.tag?.label
}}
</a>
</h2>
<div
class=
"m-pro
--channel-home--category-c
ontent"
>
<div
class=
"m-pro
ChannelHome__categoryC
ontent"
>
<ng-container
*ngFor=
"let entity$ of category?.content"
>
<m-pro--channel-tile
*ngIf=
"entity$ | async as entity"
...
...
@@ -33,7 +33,7 @@
</div>
</div>
<div
class=
"m-pro
--channel-home--
loader"
*ngIf=
"inProgress"
>
<div
class=
"m-pro
ChannelHome__
loader"
*ngIf=
"inProgress"
>
<div
class=
"mdl-spinner mdl-js-spinner is-active"
[
mdl
]
></div>
</div>
</div>
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/home/home.component.scss
View file @
8fa9d973
m-pro
--channel-
home
{
m-pro
Channel__
home
{
display
:
block
;
padding
:
0
32px
;
}
.m-pro
--channel-
home
{
.m-pro
Channel__
home
{
m-pro--channel--categories
{
margin
:
16px
0
32px
;
...
...
@@ -12,7 +12,7 @@ m-pro--channel-home {
}
}
.m-pro
--channel-home--
section
{
.m-pro
ChannelHome__
section
{
margin-bottom
:
72px
;
&
:last-child
{
...
...
@@ -36,13 +36,13 @@ m-pro--channel-home {
}
}
.m-pro
--channel-home--
loader
{
.m-pro
ChannelHome__
loader
{
text-align
:
center
;
margin
:
32px
auto
;
}
.m-pro
--channel-home--featured-c
ontent
,
.m-pro
--channel-home--category-c
ontent
{
.m-pro
ChannelHome__featuredC
ontent
,
.m-pro
ChannelHome__categoryC
ontent
{
width
:
80%
;
margin
:
0
auto
;
display
:
grid
;
...
...
@@ -53,7 +53,7 @@ m-pro--channel-home {
}
}
.m-pro
--channel-home--featured-c
ontent
{
.m-pro
ChannelHome__featuredC
ontent
{
grid-template-columns
:
repeat
(
2
,
1fr
);
*
:nth-child
(
1
)
{
...
...
@@ -69,7 +69,7 @@ m-pro--channel-home {
}
}
.m-pro
--channel-home--category-c
ontent
{
.m-pro
ChannelHome__categoryC
ontent
{
grid-template-columns
:
repeat
(
2
,
1fr
);
@media
screen
and
(
max-width
:
$max-mobile
)
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/login/login.component.html
View file @
8fa9d973
<section
class=
"m-
ProChannelLogin--
hero"
>
<div
class=
"m-
ProChannelLogin--hero--
inner"
>
<div
class=
"m-
ProChannelLogin--hero--
slogans"
>
<section
class=
"m-
proChannelLogin__
hero"
>
<div
class=
"m-
proChannelLoginHero__
inner"
>
<div
class=
"m-
proChannelLoginHero__
slogans"
>
<h2>
{{ settings?.headline }}
</h2>
</div>
<div
class=
"m-
ProChannelLogin--login
"
>
<div
class=
"m-
proChannelLogin__form
"
>
<ng-container
*ngIf=
"currentSection === 'login'"
>
<span
class=
"m-proChannelLogin
--
subtext"
>
<span
class=
"m-proChannelLogin
__
subtext"
>
Not on {{ settings?.title }}?
<a
(click)=
"currentSection = 'register'"
>
Start a Minds channel
</a>
</span>
...
...
@@ -15,7 +15,7 @@
</ng-container>
<ng-container
*ngIf=
"currentSection === 'register'"
>
<span
class=
"m-proChannelLogin
--
subtext"
>
<span
class=
"m-proChannelLogin
__
subtext"
>
<a
(click)=
"currentSection = 'login'"
>
I already have a Minds account
</a>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/login/login.component.scss
View file @
8fa9d973
...
...
@@ -9,11 +9,11 @@ m-pro--channel-login {
}
}
.m-
ProChannelLogin--
hero
{
.m-
proChannelLogin__
hero
{
position
:
relative
;
width
:
100%
;
.m-
ProChannelLogin--hero--
inner
{
.m-
proChannelLoginHero__
inner
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
...
...
@@ -55,7 +55,7 @@ m-pro--channel-login {
}
}
.m-
ProChannelLogin--
hero--video
{
.m-
proChannelLogin__
hero--video
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
...
...
@@ -71,7 +71,7 @@ m-pro--channel-login {
}
}
.m-
ProChannelLogin--
hero--overlay
{
.m-
proChannelLogin__
hero--overlay
{
position
:
absolute
;
top
:
0
;
left
:
0
;
...
...
@@ -83,7 +83,7 @@ m-pro--channel-login {
}
}
.m-
ProChannelLogin--hero--
slogans
{
.m-
proChannelLoginHero__
slogans
{
flex-grow
:
1
;
z-index
:
2
;
...
...
@@ -137,7 +137,7 @@ m-pro--channel-login {
}
}
.m-
ProChannelLogin--login
{
.m-
proChannelLogin__form
{
flex
:
1
;
margin-left
:
16px
;
z-index
:
2
;
...
...
@@ -149,7 +149,7 @@ m-pro--channel-login {
min-width
:
initial
;
}
.m-proChannelLogin
--
subtext
{
.m-proChannelLogin
__
subtext
{
display
:
block
;
margin
:
0
8px
;
font-size
:
20px
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/subscribe-button/subscribe-button.component.html
View file @
8fa9d973
...
...
@@ -3,7 +3,7 @@
[class.m-pro__subscribeButton--subscribed]=
"subscribed"
(click)=
"toggleSubscription(); $event.preventDefault()"
>
<span
class=
"m-pro
__subscribeButton--
label"
>
<span
class=
"m-pro
SubscribeButton__
label"
>
<ng-container
*ngIf=
"!subscribed; else subscribedActionButton"
i18n
>
Subscribe
</ng-container>
...
...
@@ -12,7 +12,7 @@
</ng-template>
</span>
<span
class=
"m-pro
__subscribeButton--
counter"
>
<span
class=
"m-pro
SubscribeButton__
counter"
>
{{ count | abbr: 0 }}
</span>
</button>
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/subscribe-button/subscribe-button.component.scss
View file @
8fa9d973
...
...
@@ -18,11 +18,11 @@
color
:
var
(
--
m-pro--text-color
);
}
.m-pro
__subscribeButton--
label
{
.m-pro
SubscribeButton__
label
{
opacity
:
0
.85
;
}
.m-pro
__subscribeButton--
counter
{
.m-pro
SubscribeButton__
counter
{
margin-left
:
0
.65em
;
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/subscription/subscription.component.html
View file @
8fa9d973
...
...
@@ -19,13 +19,13 @@
Cancel Pro
</button>
<span
*ngIf=
"error"
class=
"m-pro
-subscription--
error"
>
<span
*ngIf=
"error"
class=
"m-pro
Subscription__
error"
>
{{ error }}
</span>
</ng-container>
<ng-template
#inProgressSpinner
>
<div
class=
"m-pro
-subscription--in-p
rogress"
>
<div
class=
"m-pro
Subscription__inP
rogress"
>
<div
class=
"mdl-spinner mdl-js-spinner is-active"
[
mdl
]
></div>
</div>
</ng-template>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/subscription/subscription.components.scss
View file @
8fa9d973
m-pro--subscription
{
.m-pro
-subscription--
error
{
.m-pro
Subscription__
error
{
display
:
block
;
font-weight
:
bold
;
color
:
#fff
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/unsubscribe-modal/modal.component.html
View file @
8fa9d973
<div
class=
"m-pro
--unsubscribe-m
odal"
>
<div
class=
"m-pro
__unsubscribeM
odal"
>
<div
class=
"m-ProUnsubscribeModal__body"
>
<span>
Do you wish to unsubscribe from
<strong>
{{ channelName }}
</strong
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/unsubscribe-modal/modal.component.scss
View file @
8fa9d973
m-pro
--unsubscribe-m
odal
{
m-pro
__unsubscribeM
odal
{
@include
m-theme
()
{
background-color
:
rgba
(
themed
(
$m-black-always
)
,
0
.95
);
}
}
.m-pro
--unsubscribe-m
odal
{
.m-pro
__unsubscribeM
odal
{
>
*
{
color
:
var
(
--
m-pro--text-color
);
font-size
:
16px
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/settings/settings.component.html
View file @
8fa9d973
<div
class=
"m-pro
--
settings"
>
<div
class=
"m-pro
__
settings"
>
<div
class=
"m-toolbar"
*ngIf=
"settings"
>
<div
class=
"m-topbar--row"
>
<div
class=
"m-topbar--navigation m-topbar--navigation--text-only"
>
...
...
@@ -73,7 +73,7 @@
</div>
<div
class=
"m-page"
>
<div
class=
"m-page--main m-pro
--settings--
page m-border"
>
<div
class=
"m-page--main m-pro
Settings__
page m-border"
>
<div
*ngIf=
"inProgress && !settings"
>
<div
class=
"mdl-spinner mdl-js-spinner is-active"
[
mdl
]
></div>
</div>
...
...
@@ -84,12 +84,12 @@
<!-- General -->
<ng-template
ngSwitchCase=
"general"
>
<p
class=
"m-pro
--settings--
note"
i18n
>
<p
class=
"m-pro
Settings__
note"
i18n
>
Customize your title and headline. This will be used as your SEO
tags as well.
</p>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
for=
"title"
i18n
>
Title
</label>
<input
type=
"text"
...
...
@@ -99,7 +99,7 @@
/>
</div>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
for=
"headline"
i18n
>
Headline (can be multi-line)
</label>
<textarea
id=
"headline"
...
...
@@ -112,11 +112,11 @@
<!-- Theme -->
<ng-template
ngSwitchCase=
"theme"
>
<p
class=
"m-pro
--settings--
note"
i18n
>
<p
class=
"m-pro
Settings__
note"
i18n
>
Set up your color scheme below.
</p>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
for=
"text_color"
i18n
>
Text Color
</label>
<input
type=
"color"
...
...
@@ -126,7 +126,7 @@
/>
</div>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
for=
"primary_color"
i18n
>
Primary Color
</label>
<input
type=
"color"
...
...
@@ -136,7 +136,7 @@
/>
</div>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
for=
"plain_background_color"
i18n
>
Plain Background Color
</label>
...
...
@@ -148,7 +148,7 @@
/>
</div>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
i18n
>
Color Schema
</label>
...
...
@@ -160,7 +160,7 @@
value=
"light"
[(ngModel)]=
"settings.scheme"
/>
<label
for=
"scheme_light"
class=
"m-pro
--settings--inline-l
abel"
>
<label
for=
"scheme_light"
class=
"m-pro
Settings__inlineL
abel"
>
Light
</label>
...
...
@@ -171,12 +171,12 @@
value=
"dark"
[(ngModel)]=
"settings.scheme"
/>
<label
for=
"scheme_dark"
class=
"m-pro
--settings--inline-l
abel"
>
<label
for=
"scheme_dark"
class=
"m-pro
Settings__inlineL
abel"
>
Dark
</label>
</div>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
i18n
>
Tiles Aspect Ratio
</label>
<ng-container
*ngFor=
"let ratio of ratios"
>
...
...
@@ -189,14 +189,14 @@
/>
<label
[for]=
"'tile_ratio_' + ratio"
class=
"m-pro
--settings--inline-l
abel"
class=
"m-pro
Settings__inlineL
abel"
>
{{ ratio }}
</label>
</ng-container>
</div>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
for=
"logo_guid"
i18n
>
Logo Asset GUID
</label>
<input
type=
"text"
...
...
@@ -210,16 +210,16 @@
<!-- Tags -->
<ng-template
ngSwitchCase=
"hashtags"
>
<p
class=
"m-pro
--settings--
note"
i18n
>
<p
class=
"m-pro
Settings__
note"
i18n
>
Set up your category filter hashtags here.
</p>
<m-draggable-list
[data]=
"settings.tag_list"
[id]=
"'tag'"
>
<ng-template
let-tag=
"item"
let-i=
"i"
>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
i18n
>
Hashtag #{{ i + 1 }}
</label>
<div
class=
"m-pro
--settings--flex-i
nputs"
>
<div
class=
"m-pro
Settings__flexI
nputs"
>
<input
type=
"text"
placeholder=
"Label"
...
...
@@ -244,7 +244,7 @@
</ng-template>
</m-draggable-list>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<button
class=
"m-btn m-btn--slim"
type=
"button"
...
...
@@ -260,11 +260,11 @@
<!-- Footer -->
<ng-template
ngSwitchCase=
"footer"
>
<p
class=
"m-pro
--settings--
note"
i18n
>
<p
class=
"m-pro
Settings__
note"
i18n
>
Set up your footer links below.
</p>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
for=
"footer_text"
i18n
>
Text
</label>
<input
type=
"text"
...
...
@@ -276,10 +276,10 @@
<m-draggable-list
[data]=
"settings.footer_links"
[id]=
"'title'"
>
<ng-template
let-link=
"item"
let-i=
"i"
>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
i18n
>
Link #{{ i + 1 }}
</label>
<div
class=
"m-pro
--settings--flex-i
nputs"
>
<div
class=
"m-pro
Settings__flexI
nputs"
>
<input
type=
"text"
placeholder=
"Title"
...
...
@@ -304,7 +304,7 @@
</ng-template>
</m-draggable-list>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<button
class=
"m-btn m-btn--slim"
type=
"button"
...
...
@@ -320,11 +320,11 @@
<!-- Domain -->
<ng-template
ngSwitchCase=
"domain"
>
<p
class=
"m-pro
--settings--
note"
i18n
>
<p
class=
"m-pro
Settings__
note"
i18n
>
Customize your domain and setup your HTTPS certificates.
</p>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
for=
"domain"
i18n
>
Domain
</label>
<input
type=
"text"
...
...
@@ -334,17 +334,17 @@
/>
</div>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<label
for=
"custom_head"
i18n
>
Custom
<
head
>
Code
</label>
<textarea
class=
"m-pro
--settings--code-t
extarea"
class=
"m-pro
Settings__codeT
extarea"
id=
"custom_head"
name=
"custom_head"
[(ngModel)]=
"settings.custom_head"
[readOnly]=
"!isAdmin"
></textarea>
<p
*ngIf=
"!isAdmin"
class=
"m-pro
--settings--
note"
i18n
>
<p
*ngIf=
"!isAdmin"
class=
"m-pro
Settings__
note"
i18n
>
In order to customize this field, please contact a Minds admin
or email info@minds.com.
</p>
...
...
@@ -354,12 +354,12 @@
<!-- Cancel -->
<ng-template
ngSwitchCase=
"cancel"
>
<p
class=
"m-pro
--settings--
note"
i18n
>
<p
class=
"m-pro
Settings__
note"
i18n
>
Clicking the button below will take you to Minds Pro page, where
you can cancel your subscription.
</p>
<div
class=
"m-pro
--settings--
field"
>
<div
class=
"m-pro
Settings__
field"
>
<a
class=
"m-btn m-link-btn m-btn--slim m-btn--destructive"
routerLink=
"/pro"
...
...
@@ -370,14 +370,14 @@
</ng-container>
<div
class=
"m-pro
--settings--
error"
class=
"m-pro
Settings__
error"
*ngIf=
"!!error"
>
{{ error }}
</div>
<div
class=
"m-pro
--settings--field m-pro--settings--field-a
ctions"
class=
"m-pro
Settings__field m-proSettings__fieldA
ctions"
*ngIf=
"currentTab !== 'cancel'"
>
<button
...
...
@@ -389,12 +389,12 @@
Save
</button>
<div
class=
"m-pro
--settings--field-s
pinner"
*ngIf=
"inProgress"
>
<div
class=
"m-pro
Settings__fieldS
pinner"
*ngIf=
"inProgress"
>
<div
class=
"mdl-spinner mdl-js-spinner is-active"
[
mdl
]
></div>
</div>
<a
class=
"m-btn m-link-btn m-btn--slim m-pro
--settings--preview-b
tn"
class=
"m-btn m-link-btn m-btn--slim m-pro
Settings__previewB
tn"
[routerLink]=
"previewRoute"
i18n
>
View your Pro channel
</a
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/settings/settings.component.scss
View file @
8fa9d973
.m-pro
--
settings
{
.m-pro
__
settings
{
max-width
:
1280px
;
margin
:
auto
;
...
...
@@ -7,7 +7,7 @@
}
}
.m-pro
--settings--
page
{
.m-pro
Settings__
page
{
padding-bottom
:
24px
;
@include
m-theme
()
{
...
...
@@ -23,7 +23,7 @@
padding
:
0
;
}
.m-pro
--settings--
field
{
.m-pro
Settings__
field
{
margin
:
0
0
24px
;
&
:last-child
{
...
...
@@ -39,7 +39,7 @@
color
:
themed
(
$m-grey-800
);
}
&
.m-pro
--settings--inline-l
abel
{
&
.m-pro
Settings__inlineL
abel
{
display
:
inline-block
;
padding
:
0
;
margin
:
0
0
.35em
;
...
...
@@ -72,7 +72,7 @@
height
:
6em
;
resize
:
none
;
&
.m-pro
--settings--code-t
extarea
{
&
.m-pro
Settings__codeT
extarea
{
font-family
:
monospace
;
font-size
:
13px
;
max-width
:
49em
;
...
...
@@ -84,7 +84,7 @@
}
}
&
.m-pro
--settings--field-a
ctions
{
&
.m-pro
Settings__fieldA
ctions
{
display
:
flex
;
flex-direction
:
row
;
...
...
@@ -94,7 +94,7 @@
}
}
.m-pro
--settings--preview-b
tn
{
.m-pro
Settings__previewB
tn
{
margin-left
:
0
.35em
;
@include
m-theme
()
{
...
...
@@ -103,13 +103,13 @@
}
}
.m-pro
--settings--
note
{
.m-pro
Settings__
note
{
@include
m-theme
()
{
color
:
themed
(
$m-grey-400
);
}
}
.m-pro
--settings--flex-i
nputs
{
.m-pro
Settings__flexI
nputs
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
...
...
@@ -129,11 +129,11 @@
}
}
.m-pro
--settings--field-s
pinner
{
.m-pro
Settings__fieldS
pinner
{
margin-left
:
0
.65em
;
}
.m-pro
--settings--
error
{
.m-pro
Settings__
error
{
margin
:
16px
0
;
font-size
:
20px
;
@include
m-theme
()
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/settings/settings.component.ts
View file @
8fa9d973
...
...
@@ -46,7 +46,8 @@ export class ProSettingsComponent implements OnInit, OnDestroy {
protected
cd
:
ChangeDetectorRef
,
protected
title
:
MindsTitle
,
protected
site
:
SiteService
)
{}
)
{
}
ngOnInit
()
{
this
.
param$
=
this
.
route
.
params
.
subscribe
(
params
=>
{
...
...
@@ -82,6 +83,7 @@ export class ProSettingsComponent implements OnInit, OnDestroy {
}
async
save
()
{
this
.
error
=
null
;
this
.
inProgress
=
true
;
this
.
detectChanges
();
...
...
This diff is collapsed.
Click to expand it.