Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
dc77cf01
Commit
dc77cf01
authored
Oct 16, 2018
by
Zach Osman
Browse files
Absolute imports ftw
parent
58b6bf13
Pipeline
#3243
passed with stage
in 1 minute and 4 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
go/go_ahead/src/Components/Templates/PageTemplate.js
0 → 100644
View file @
dc77cf01
import
React
from
'
react
'
;
import
{
NavBar
}
from
'
Components
'
;
export
default
class
PageTemplate
extends
React
.
Component
{
render
()
{
return
(
<
div
style
=
{[
styles
.
container
,
this
.
props
.
style
]}
>
<
NavBar
/>
<
div
>
{
this
.
props
.
children
}
<
/div
>
<
/div
>
);
}
}
go/go_ahead/src/Components/Templates/index.js
0 → 100644
View file @
dc77cf01
import
PageTemplate
from
'
./PageTemplate
'
;
export
{
PageTemplate
};
go/go_ahead/src/Components/index.js
View file @
dc77cf01
import
{
PageTemplate
}
from
'
./Templates
'
;
import
{
HomePage
,
AboutPage
}
from
'
./Pages
'
;
import
{
NavBar
}
from
'
./Organisms
'
;
export
{
HomePage
,
AboutPage
,
NavBar
};
export
{
//Tempaltes
PageTemplate
,
//Pages
HomePage
,
AboutPage
,
//Organisms
NavBar
,
};
go/go_ahead/src/index.js
View file @
dc77cf01
...
...
@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom';
import
{
HashRouter
,
Route
,
Link
}
from
'
react-router-dom
'
;
import
{
Button
}
from
'
reactstrap
'
;
import
{
HomePage
,
AboutPage
,
NavBar
}
from
'
./
Components
'
;
import
{
HomePage
,
AboutPage
,
NavBar
}
from
'
Components
'
;
const
Dhaynes
=
()
=>
<
p
>
dhaynes
<
/p>
;
...
...
webpack.config.js
View file @
dc77cf01
const
path
=
require
(
'
path
'
);
module
.
exports
=
{
module
:
{
rules
:
[
...
...
@@ -10,5 +12,8 @@ module.exports = {
},
resolve
:
{
extensions
:
[
'
*
'
,
'
.js
'
,
'
.jsx
'
],
alias
:
{
Components
:
path
.
resolve
(
__dirname
,
'
./go/go_ahead/src/Components
'
),
},
},
};
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