Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
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
Dida Adams Arizona
Tia-dev
Commits
065f3d55
Commit
065f3d55
authored
Sep 04, 2020
by
a.bairuha
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into syadziy
parents
4f280285
4158cc7c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
131 additions
and
4 deletions
+131
-4
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+1
-1
Home.js
src/container/Home.js
+8
-0
Perusahaan.js
src/container/MasterData/Perusahaan/Perusahaan.js
+5
-3
CustomTable.js
src/library/CustomTable.js
+117
-0
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
065f3d55
...
@@ -1967,7 +1967,7 @@ export default class BalanceSheet extends Component {
...
@@ -1967,7 +1967,7 @@ export default class BalanceSheet extends Component {
<
/MuiThemeProvider
>
<
/MuiThemeProvider
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x"
>
<
div
className
=
"grid grid-2x"
style
=
{{
marginTop
:
20
}}
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
button
<
button
className
=
"button"
className
=
"button"
...
...
src/container/Home.js
View file @
065f3d55
...
@@ -372,6 +372,14 @@ export default function MiniDrawer() {
...
@@ -372,6 +372,14 @@ export default function MiniDrawer() {
})
})
}
}
if
(
sessionStorage
.
getItem
(
'reloaded'
)
!=
null
)
{
console
.
log
(
'page was reloaded'
);
}
else
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
window
.
location
.
reload
();
}
sessionStorage
.
setItem
(
'reloaded'
,
'yes'
);
const
logout
=
()
=>
{
const
logout
=
()
=>
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
localStorage
.
removeItem
(
Constant
.
TOKEN
)
window
.
location
.
reload
();
window
.
location
.
reload
();
...
...
src/container/MasterData/Perusahaan/Perusahaan.js
View file @
065f3d55
...
@@ -483,6 +483,8 @@ export default class Perusahaan extends Component {
...
@@ -483,6 +483,8 @@ export default class Perusahaan extends Component {
const
columns
=
[{
const
columns
=
[{
name
:
"Action"
,
name
:
"Action"
,
options
:
{
options
:
{
filter
:
false
,
sort
:
false
,
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
...
@@ -583,9 +585,9 @@ export default class Perusahaan extends Component {
...
@@ -583,9 +585,9 @@ export default class Perusahaan extends Component {
{
this
.
state
.
visiblePerusahaan
===
true
?
{
this
.
state
.
visiblePerusahaan
===
true
?
this
.
state
.
load
&&
(
this
.
state
.
load
&&
(
<
div
>
<
div
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingRight
:
25
,
paddingLeft
:
25
,
marginTop
:
-
1
18
}}
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingRight
:
25
,
paddingLeft
:
25
,
marginTop
:
-
1
81
}}
>
<
label
style
=
{{
color
:
'white'
,
fontSize
:
16
,
alignSelf
:
'center'
,
width
:
'20%'
,
}}
>
Master
Data
-
Company
<
/label
>
<
label
style
=
{{
color
:
'white'
,
fontSize
:
16
,
alignSelf
:
'center'
,
width
:
'20%'
,
}}
>
Master
Data
-
Company
<
/label
>
<
div
style
=
{{
color
:
'white'
,
width
:
'50%'
,
height
:
37
,
display
:
'flex'
,
backgroundColor
:
'white'
,
borderWidth
:
2
,
alignItems
:
'center'
,
borderRadius
:
6
,
paddingLeft
:
5
,
paddingRight
:
5
,
alignSelf
:
'center'
}}
>
{
/*
<div style={{ color: 'white', width: '50%', height: 37, display: 'flex', backgroundColor: 'white', borderWidth: 2, alignItems: 'center', borderRadius: 6, paddingLeft: 5, paddingRight: 5, alignSelf: 'center' }}>
<img src={Images.searchBlack} style={{ marginRight: 10 }} />
<img src={Images.searchBlack} style={{ marginRight: 10 }} />
<InputBase
<InputBase
style={{ width: '100%' }}
style={{ width: '100%' }}
...
@@ -594,7 +596,7 @@ export default class Perusahaan extends Component {
...
@@ -594,7 +596,7 @@ export default class Perusahaan extends Component {
onChange={(e) => this.handleInputChange(e.target.value)}
onChange={(e) => this.handleInputChange(e.target.value)}
inputProps={{ 'aria-label': 'naked' }}
inputProps={{ 'aria-label': 'naked' }}
/>
/>
<
/div
>
</div>
*/
}
<
div
style
=
{{
width
:
'30%'
,
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
div
style
=
{{
width
:
'30%'
,
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
<
button
<
button
...
...
src/library/CustomTable.js
View file @
065f3d55
...
@@ -344,6 +344,123 @@ exports.customTable2 = function () {
...
@@ -344,6 +344,123 @@ exports.customTable2 = function () {
}
}
}
}
exports
.
customTable3
=
function
()
{
return
{
typography
:
{
useNextVariants
:
true
,
},
overrides
:
{
MUIDataTable
:
{
root
:
{
backgroundColor
:
secondColor
,
},
paper
:
{
boxShadow
:
"0 0 30px 0 rgba(154,161,171,.15)"
,
border
:
"1px rgba(0,0,0,0.1) solid"
,
borderRadius
:
"5px"
,
overflow
:
"hidden"
,
},
},
MuiToolbar
:
{
root
:
{
left
:
{
flex
:
"0 0 auto !important"
},
actions
:
{
flex
:
"0 0 auto !important"
}
}
},
MUIDataTableToolbar
:
{
root
:
{
backgroundColor
:
secondColor
,
},
titleText
:
{
color
:
"#555"
},
icon
:
{
color
:
"#555"
},
},
MUIDataTableSearch
:
{
searchIcon
:
{
color
:
"#555"
},
searchText
:
{
color
:
"#555"
,
},
clearIcon
:
{
color
:
"#555"
},
},
MUIDataTableHead
:
{
main
:
{
backgroundColor
:
mainColor
,
color
:
"#555"
}
},
MUIDataTableHeadRow
:
{
root
:
{
backgroundColor
:
mainColor
,
}
},
MUIDataTableHeadCell
:
{
root
:
{
fontSize
:
"10pt"
,
fontWeight
:
"500"
,
color
:
mainColor
,
},
fixedHeader
:
{
position
:
"relative"
,
backgroundColor
:
secondColor
,
color
:
"#555"
,
padding
:
"10px"
,
height
:
"auto"
,
},
toolButton
:
{
display
:
"flex"
,
height
:
"auto"
},
data
:
{
display
:
"inline-block"
,
verticalAlign
:
"top"
,
},
sortActive
:
{
color
:
"#555"
},
sortAction
:
{
color
:
"#555"
,
display
:
"inline-block"
,
verticalAlign
:
"top"
,
MuiButtonBase
:
{
color
:
"#555"
,
root
:
{
color
:
"#555"
,
}
}
}
},
MUIDataTableBodyCell
:
{
root
:
{
fontSize
:
"10pt"
,
padding
:
"3px"
}
},
MUIDataTableSelectCell
:
{
headerCell
:
{
backgroundColor
:
secondColor
,
checkboxRoot
:
{
color
:
"#fff"
,
}
},
checkboxRoot
:
{
color
:
"#555"
}
},
}
}
}
exports
.
customOptions
=
function
()
{
exports
.
customOptions
=
function
()
{
return
{
return
{
// selectableRows: false,
// selectableRows: false,
...
...
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