Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
minor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christian Knuchel
minor
Commits
5fbf6692
Commit
5fbf6692
authored
Apr 21, 2020
by
Fence
🌈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some stuff that was lying around
parent
282d009a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
admin-fe/src/components/app.jsx
admin-fe/src/components/app.jsx
+2
-2
admin-fe/src/containers/.tern-port
admin-fe/src/containers/.tern-port
+1
-0
admin-fe/src/containers/LoginContainer.jsx
admin-fe/src/containers/LoginContainer.jsx
+1
-1
admin-fe/src/pages/songs.jsx
admin-fe/src/pages/songs.jsx
+4
-2
admin-fe/webpack.config.js
admin-fe/webpack.config.js
+1
-3
No files found.
admin-fe/src/components/app.jsx
View file @
5fbf6692
...
...
@@ -21,8 +21,8 @@ export default class App extends React.Component {
<
Navbar
/>
<
Router
>
<
Switch
>
<
Route
path
=
"/"
component
=
{
HomePage
}
/>
<
Route
path
=
"/"
component
=
{
SongListPage
}
/>
<
Route
path
=
"/"
exact
component
=
{
HomePage
}
/>
<
Route
path
=
"/
resources/songs
"
component
=
{
SongListPage
}
/>
</
Switch
>
</
Router
>
</
div
>
...
...
admin-fe/src/containers/.tern-port
0 → 100644
View file @
5fbf6692
39195
\ No newline at end of file
admin-fe/src/containers/LoginContainer.jsx
View file @
5fbf6692
...
...
@@ -37,7 +37,7 @@ export default class LoginContainer extends React.Component {
}).
then
(
resp
=>
resp
.
json
()).
then
((
data
)
=>
{
if
(
data
.
code
===
200
)
{
localStorage
.
setItem
(
"
token
"
,
data
.
value
);
// TODO redirect to other page
window
.
location
.
href
=
"
/resource/songs
"
;
}
});
}
...
...
admin-fe/src/pages/songs.jsx
View file @
5fbf6692
import
React
from
"
react
"
;
export
default
class
Home
Page
extends
React
.
PureComponent
{
export
default
class
SongList
Page
extends
React
.
PureComponent
{
render
()
{
return
(
<
div
className
=
"page-song-list"
/>
<
div
className
=
"page-song-list"
>
<
h1
>
SONGS
</
h1
>
</
div
>
);
}
}
admin-fe/webpack.config.js
View file @
5fbf6692
...
...
@@ -79,9 +79,7 @@ module.exports = (env, options) => {
devServer
:
{
contentBase
:
"
./dist
"
,
open
:
false
,
historyApiFallback
:
{
index
:
"
index.html
"
,
},
historyApiFallback
:
true
,
proxy
:
{
"
/api
"
:
"
http://localhost:5000
"
,
"
/auth
"
:
"
http://localhost:5000
"
,
...
...
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