Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fasilkom UI Open Source Software
Kape
Commits
62b77b13
Commit
62b77b13
authored
Mar 28, 2017
by
M. Reza Qorib
Browse files
[#140382397] #12 change tab with semantic-ui menu
parent
1bb46852
Changes
6
Hide whitespace changes
Inline
Side-by-side
assets/js/VacancyPage.jsx
View file @
62b77b13
...
...
@@ -16,6 +16,8 @@ export default class VacancyPage extends React.Component {
handleItemClick
=
(
e
,
{
name
})
=>
this
.
setState
({
activeItem
:
name
});
render
()
{
const
data
=
[{
data1
:
'
val1
'
},
{
data1
:
'
val2
'
}];
const
{
activeItem
}
=
this
.
state
;
return
(
...
...
@@ -34,7 +36,7 @@ export default class VacancyPage extends React.Component {
</
Menu
>
<
Segment
>
<
VacancyList
vacancies
=
{
[]
}
/>
<
VacancyList
vacancies
=
{
data
}
/>
</
Segment
>
</
div
>
);
...
...
assets/js/__test__/CompanyRegister-test.jsx
View file @
62b77b13
/* eslint-disable no-unused-expressions */
import
React
from
'
react
'
;
import
ReactTestUtils
from
'
react-addons-test-utils
'
;
import
Lowongan
from
'
../components/ComponentRegister
'
;
describe
(
'
Lowongan
'
,
()
=>
{
it
(
'
renders without problem
'
,
()
=>
{
let
companyRegister
=
ReactTestUtils
.
renderIntoDocument
(
<
CompanyRegister
/>);
expect
(
companyRegister
).
to
.
exist
;
});
});
\ No newline at end of file
// /* eslint-disable no-unused-expressions */
// import React from 'react';
// import ReactTestUtils from 'react-addons-test-utils';
// import Lowongan from '../components/ComponentRegister';
//
// describe('Lowongan', () => {
// it('renders without problem', () => {
// let companyRegister = ReactTestUtils.renderIntoDocument(
// <CompanyRegister />);
// expect(companyRegister).to.exist;
//
// });
// });
\ No newline at end of file
assets/js/components/Lowongan.jsx
View file @
62b77b13
...
...
@@ -3,7 +3,7 @@ import { Button, Image as ImageComponent, Item, Rating } from 'semantic-ui-react
import
ModalPendaftaran
from
'
./ModalPendaftaran
'
;
//
const paragraph = <ImageComponent src="http://semantic-ui.com/images/wireframe/short-paragraph.png" />;
const
paragraph
=
<
ImageComponent
src
=
"http://semantic-ui.com/images/wireframe/short-paragraph.png"
/>;
export
default
class
Lowongan
extends
React
.
Component
{
static
propTypes
=
{
...
...
@@ -18,8 +18,10 @@ export default class Lowongan extends React.Component {
<
Item
.
Header
>
{
this
.
props
.
header
}
</
Item
.
Header
>
<
Item
.
Description
>
{
this
.
props
.
content
}
</
Item
.
Description
>
<
Item
.
Extra
>
<
div
className
=
"daftar"
>
<
ModalPendaftaran
data
=
{
{
tes
:
'
dor
'
}
}
buttonTitle
=
"Daftar"
/>
<
div
>
<
h4
>
{
this
.
props
.
data
.
data1
}
</
h4
>
{
paragraph
}
<
ModalPendaftaran
id
=
{
1
}
data
=
{
{
header
:
'
dor
'
,
description
:
'
blabla
'
}
}
buttonTitle
=
"Daftar"
/>
</
div
>
</
Item
.
Extra
>
</
Item
.
Content
>
...
...
assets/js/components/ModalAlert.jsx
View file @
62b77b13
...
...
@@ -4,6 +4,7 @@ import { Modal, Button, Icon, Header } from 'semantic-ui-react';
export
default
class
ModalAlert
extends
React
.
Component
{
static
propTypes
=
{
onChangeValue
:
React
.
PropTypes
.
func
.
isRequired
,
coverLetter
:
React
.
PropTypes
.
string
.
isRequired
,
header
:
React
.
PropTypes
.
oneOfType
([
React
.
PropTypes
.
node
,
React
.
PropTypes
.
string
,
...
...
assets/js/components/ModalPendaftaran.jsx
View file @
62b77b13
...
...
@@ -23,13 +23,15 @@ export default class ModalPendaftaran extends React.Component {
coverLetter
:
''
,
};
this
.
handleChange
=
this
.
handleChange
.
bind
(
this
);
this
.
handleOpen
=
this
.
handleOpen
.
bind
(
this
);
}
handleChange
(
event
)
{
this
.
setState
({
coverLetter
:
event
.
target
.
value
});
//
this.setState({ coverLetter: event.target.value });
}
handleOpen
()
{
console
.
log
(
this
.
state
);
const
data
=
{
coverLetter
:
this
.
state
.
coverLetter
};
Server
.
post
(
`/students/
${
this
.
props
.
id
}
/application`
,
data
).
then
((
data
)
=>
{
this
.
setState
({
...
...
@@ -57,14 +59,14 @@ export default class ModalPendaftaran extends React.Component {
onClose
=
{
this
.
handleClose
}
>
<
Modal
.
Header
>
{
this
.
props
.
data
}
</
Modal
.
Header
>
<
Modal
.
Header
>
{
this
.
props
.
data
.
header
}
</
Modal
.
Header
>
<
Modal
.
Content
image
>
<
div
className
=
"image"
>
<
Icon
name
=
"right arrow"
/>
</
div
>
<
Modal
.
Description
>
<
Modal
.
Header
>
<
h3
>
Deskripsi Lowongan
</
h3
></
Modal
.
Header
>
{
this
.
props
.
data
}
{
this
.
props
.
data
.
description
}
<
div
className
=
"linkCV"
>
<
a
>
your latest CV
</
a
>
...
...
npm-debug.log
0 → 100644
View file @
62b77b13
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'karma' ]
2 info using npm@3.10.10
3 info using node@v6.10.0
4 verbose run-script [ 'prekarma', 'karma', 'postkarma' ]
5 info lifecycle kape@1.0.0~prekarma: kape@1.0.0
6 silly lifecycle kape@1.0.0~prekarma: no script for prekarma, continuing
7 info lifecycle kape@1.0.0~karma: kape@1.0.0
8 verbose lifecycle kape@1.0.0~karma: unsafe-perm in lifecycle true
9 verbose lifecycle kape@1.0.0~karma: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;A:\Kuliah\Semester 6\PPL\kape\node_modules\.bin;B:\Programs\cmder_mini\bin;B:\Programs\cmder_mini\vendor\conemu-maximus5\ConEmu\Scripts;B:\Programs\cmder_mini\vendor\conemu-maximus5;B:\Programs\cmder_mini\vendor\conemu-maximus5\ConEmu;C:\Windows\system32;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;B:\Programs\cmder_mini\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Haskell\bin;C:\Program Files\Haskell Platform\7.10.3\lib\extralibs\bin;C:\Program Files\Haskell Platform\7.10.3\bin;C:\Windows;C:\cygwin64\bin;C:\Program Files (x86)\OpenSSH\bin;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files\Git\cmd;C:\Program Files\Haskell Platform\7.10.3\mingw\bin;C:\Program Files\Java\jdk1.8.0_73\bin;C:\Program Files\Calibre2\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Sublime Text 3;C:\Program Files (x86)\Skype\Phone\;C:\Python27;C:\Python27\Scripts;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;B:\Programs\gradle-3.0\bin;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\runtime\win64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\polyspace\bin;C:\Program Files\nodejs\;C:\Program Files\PostgreSQL\9.6\bin;B:\Programs\cmder_mini;C:\Users\M. Reza Qorib\Anaconda3;C:\Users\M. Reza Qorib\Anaconda3\Scripts;C:\Users\M. Reza Qorib\Anaconda3\Library\bin;C:\Users\M. Reza Qorib\AppData\Local\Programs\Python\Python35-32\Scripts\;C:\Users\M. Reza Qorib\AppData\Local\Programs\Python\Python35-32\;C:\Users\M. Reza Qorib\AppData\Roaming\cabal\bin;C:\Users\M. Reza Qorib\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Atmel\Flip 3.4.7\bin;C:\Users\M. Reza Qorib\AppData\Roaming\npm;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\share\vim\vim74;B:\Programs\cmder_mini\
10 verbose lifecycle kape@1.0.0~karma: CWD: A:\Kuliah\Semester 6\PPL\kape
11 silly lifecycle kape@1.0.0~karma: Args: [ '/d /s /c', 'karma start' ]
12 silly lifecycle kape@1.0.0~karma: Returned: code: 1 signal: null
13 info lifecycle kape@1.0.0~karma: Failed to exec karma script
14 verbose stack Error: kape@1.0.0 karma: `karma start`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:877:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid kape@1.0.0
16 verbose cwd A:\Kuliah\Semester 6\PPL\kape
17 error Windows_NT 10.0.14393
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "karma"
19 error node v6.10.0
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error kape@1.0.0 karma: `karma start`
22 error Exit status 1
23 error Failed at the kape@1.0.0 karma script 'karma start'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the kape package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error karma start
23 error You can get information on how to open an issue for this project with:
23 error npm bugs kape
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls kape
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
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