Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Oving3__12
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Thorkildsen
Oving3__12
Commits
652f7251
Commit
652f7251
authored
6 years ago
by
Patrick Thorkildsen
Browse files
Options
Downloads
Patches
Plain Diff
final changes
parent
1e409433
Branches
master
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Oving12jaja/LICENSE
+0
-21
0 additions, 21 deletions
Oving12jaja/LICENSE
Oving12jaja/src/old
+0
-33
0 additions, 33 deletions
Oving12jaja/src/old
Oving12jaja/src/widgets.js
+0
-57
0 additions, 57 deletions
Oving12jaja/src/widgets.js
with
0 additions
and
111 deletions
Oving12jaja/LICENSE
deleted
100644 → 0
+
0
−
21
View file @
1e409433
MIT License
Copyright (c) 2018 tdat2003
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
This diff is collapsed.
Click to expand it.
Oving12jaja/src/old
deleted
100644 → 0
+
0
−
33
View file @
1e409433
class NewsList extends Component {
render() {
return (
<div class="row mb-2">
{cases.map(NewsCase => (
<div class="col-md-6" key={NewsCase.id}>
<div class="card flex-md-row mb-4 shadow-sm h-md-250">
<div class="card-body d-flex flex-column align-items-start">
<strong class="d-inline-block mb-2 text-success">
{NewsCase.category}
</strong>
<h3 class="mb-0">
<a class="text-dark" href="#">
{NewsCase.title}
</a>
</h3>
<div class="mb-1 text-muted">{NewsCase.date}</div>
<p class="card-text mb-auto">{NewsCase.text}</p>
<a href="#">Les videre</a>
</div>
<img
class="card-img-right flex-auto d-none d-lg-block"
src={NewsCase.pictureUrl}
alt="Card image cap"
height="300px"
/>
</div>
</div>
))}
</div>
);
}
}
This diff is collapsed.
Click to expand it.
Oving12jaja/src/widgets.js
deleted
100644 → 0
+
0
−
57
View file @
1e409433
// @flow
/* eslint eqeqeq: "off" */
import
*
as
React
from
'
react
'
;
import
{
Component
}
from
'
react-simplified
'
;
/**
* Renders alert messages using Bootstrap classes.
*/
export
class
Alert
extends
Component
{
alerts
:
{
text
:
React
.
Node
,
type
:
string
}[]
=
[];
render
()
{
return
this
.
alerts
.
map
((
alert
,
i
)
=>
(
<
div
key
=
{
i
}
className
=
{
'
alert alert-
'
+
alert
.
type
}
role
=
"
alert
"
>
{
alert
.
text
}
<
button
type
=
"
button
"
className
=
"
close
"
onClick
=
{()
=>
{
this
.
alerts
.
splice
(
i
,
1
);
}}
>
&
times
;
<
/button
>
<
/div
>
));
}
static
success
(
text
:
React
.
Node
)
{
// To avoid 'Cannot update during an existing state transition' errors, run after current event through setTimeout
setTimeout
(()
=>
{
for
(
let
instance
:
Alert
of
Alert
.
instances
())
instance
.
alerts
.
push
({
text
:
text
,
type
:
'
success
'
});
});
}
static
info
(
text
:
React
.
Node
)
{
// To avoid 'Cannot update during an existing state transition' errors, run after current event through setTimeout
setTimeout
(()
=>
{
for
(
let
instance
:
Alert
of
Alert
.
instances
())
instance
.
alerts
.
push
({
text
:
text
,
type
:
'
info
'
});
});
}
static
warning
(
text
:
React
.
Node
)
{
// To avoid 'Cannot update during an existing state transition' errors, run after current event through setTimeout
setTimeout
(()
=>
{
for
(
let
instance
:
Alert
of
Alert
.
instances
())
instance
.
alerts
.
push
({
text
:
text
,
type
:
'
warning
'
});
});
}
static
danger
(
text
:
React
.
Node
)
{
// To avoid 'Cannot update during an existing state transition' errors, run after current event through setTimeout
setTimeout
(()
=>
{
for
(
let
instance
:
Alert
of
Alert
.
instances
())
instance
.
alerts
.
push
({
text
:
text
,
type
:
'
danger
'
});
});
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment