Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kus-admin
Project
Overview
Details
Activity
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
Иван Кубота
kus-admin
Commits
c3072914
Commit
c3072914
authored
Jan 28, 2020
by
talequale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
header template
parent
80ad3716
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
14 deletions
+22
-14
DOM.js
src/core/DOM.js
+3
-4
Store.js
src/core/data/store/Store.js
+4
-2
Header.jsx
src/view/block/header/Header.jsx
+4
-2
Info.jsx
src/view/block/info/Info.jsx
+3
-3
Account.jsx
src/view/page/account/Account.jsx
+1
-3
welcomePage.scss
src/view/page/account/welcomePage.scss
+7
-0
No files found.
src/core/DOM.js
View file @
c3072914
...
@@ -198,7 +198,7 @@ NS.apply = function(a,b) {
...
@@ -198,7 +198,7 @@ NS.apply = function(a,b) {
tr
:
null
,
tr
:
null
,
Text
:
function
(
val
){
return
document
.
createTextNode
(
val
);}
Text
:
function
(
val
){
return
document
.
createTextNode
(
val
);}
};
};
'div,span,input,label,canvas,span,textarea,table,tr,td,th,tBody,tHead'
.
split
(
','
).
forEach
(
function
(
name
){
'div,
template,
span,input,label,canvas,span,textarea,table,tr,td,th,tBody,tHead'
.
split
(
','
).
forEach
(
function
(
name
){
D
[
name
]
=
function
(){
D
[
name
]
=
function
(){
return
domEl
.
apply
(
null
,
[
name
].
concat
([].
slice
.
call
(
arguments
)))
return
domEl
.
apply
(
null
,
[
name
].
concat
([].
slice
.
call
(
arguments
)))
};
};
...
@@ -240,7 +240,7 @@ NS.apply = function(a,b) {
...
@@ -240,7 +240,7 @@ NS.apply = function(a,b) {
}
}
if
(
type
!==
'object'
){
if
(
type
!==
'object'
){
if
(
type
===
'function'
){
if
(
type
===
'function'
){
var
tmp
=
D
.
span
(
{
}
);
var
tmp
=
D
.
div
(
{
cls
:
'zero-wrapper'
}
);
el
.
appendChild
(
tmp
);
el
.
appendChild
(
tmp
);
subEl
(
function
(){
subEl
(
function
(){
D
.
removeChildren
(
tmp
);
D
.
removeChildren
(
tmp
);
...
@@ -397,4 +397,4 @@ var D = NS.D,
...
@@ -397,4 +397,4 @@ var D = NS.D,
view
=
{
view
=
{
page
:
{},
page
:
{},
cmp
:
{}
cmp
:
{}
};
};
\ No newline at end of file
src/core/data/store/Store.js
View file @
c3072914
...
@@ -225,4 +225,7 @@ Store.IF = function(cfg, children){
...
@@ -225,4 +225,7 @@ Store.IF = function(cfg, children){
}
);
}
);
}
}
};
};
typeof
module
===
'object'
&&
(
module
.
exports
=
Store
);
Store
.
NOT
=
Store
.
AGGREGATE
(
function
(
values
,
length
)
{
\ No newline at end of file
return
!
values
[
0
];
});
typeof
module
===
'object'
&&
(
module
.
exports
=
Store
);
src/view/block/header/Header.jsx
View file @
c3072914
import
'./Header.scss'
;
import
'./Header.scss'
;
const
{
IF
,
NOT
}
=
Store
;
export
default
D
.
declare
(
'view.block.Header'
,
()
=>
{
export
default
D
.
declare
(
'view.block.Header'
,
()
=>
{
return
<
header
class=
"page-header"
>
return
<
header
class=
"page-header"
>
{
{
...
@@ -10,7 +10,9 @@ export default D.declare('view.block.Header', () => {
...
@@ -10,7 +10,9 @@ export default D.declare('view.block.Header', () => {
<
button
type=
{
'button'
}
onClick=
{
()
=>
store
.
set
(
'navigation.current'
,
name
)
}
>
{
name
}
</
button
>
<
button
type=
{
'button'
}
onClick=
{
()
=>
store
.
set
(
'navigation.current'
,
name
)
}
>
{
name
}
</
button
>
)
)
}
}
<
IF
condition=
{
NOT
(
store
.
valEqual
(
'navigation.current'
,
'login'
))
}
>
<
b
>
kkk
</
b
>
</
IF
>
</
header
>
</
header
>
});
});
src/view/block/info/Info.jsx
View file @
c3072914
export
default
D
.
declare
(
'view.block.Info'
,
function
(
cfg
,
children
)
{
export
default
D
.
declare
(
'view.block.Info'
,
function
(
cfg
,
children
)
{
return
<
div
>
return
<
div
class=
"welcome-page__inner"
>
<
div
class=
{
'
img-baba
'
}
>
{
cfg
.
img
}
</
div
>
<
div
class=
{
'
welcome-page__image
'
}
>
{
cfg
.
img
}
</
div
>
<
div
class=
{
'
img-butn
'
}
>
{
children
}{
cfg
.
buttons
}
</
div
>
<
div
class=
{
'
welcome-page__info
'
}
>
{
children
}{
cfg
.
buttons
}
</
div
>
</
div
>
</
div
>
});
});
src/view/page/account/Account.jsx
View file @
c3072914
...
@@ -4,12 +4,10 @@ import './welcomePage.scss';
...
@@ -4,12 +4,10 @@ import './welcomePage.scss';
export
default
D
.
declare
(
'view.page.Account'
,
()
=>
export
default
D
.
declare
(
'view.page.Account'
,
()
=>
<
div
class=
"welcome-page"
>
<
div
class=
"welcome-page"
>
<
div
class=
"welcome-page__wrapper"
>
<
div
class=
"welcome-page__wrapper"
>
Hello,
{
store
.
val
(
'account.name'
)
}
<
Info
<
Info
img=
{
img=
{
<
picture
>
<
picture
>
<
source
/>
<
source
srcset=
"/uploads/images/assistant-welcome-mob.svg"
media=
{
"(max-width: 767px)"
}
/>
<
img
src=
"/uploads/images/assistant-welcome.svg"
alt=
{
"Изображение помощника"
}
/>
<
img
src=
"/uploads/images/assistant-welcome.svg"
alt=
{
"Изображение помощника"
}
/>
</
picture
>
</
picture
>
}
}
...
...
src/view/page/account/welcomePage.scss
View file @
c3072914
...
@@ -5,5 +5,12 @@
...
@@ -5,5 +5,12 @@
.welcome-page__wrapper
{
.welcome-page__wrapper
{
@include
container
;
@include
container
;
}
.welcome-page__inner
{
display
:
flex
;
display
:
flex
;
}
}
.welcome-page__info
{
order
:
-1
;
}
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