diff --git a/Oving12jaja/LICENSE b/Oving12jaja/LICENSE deleted file mode 100644 index c3f4695ea3330f617446714af1e437aa5dfa3490..0000000000000000000000000000000000000000 --- a/Oving12jaja/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -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. diff --git a/Oving12jaja/src/old b/Oving12jaja/src/old deleted file mode 100644 index ded4e1a1c43827d0b385e3e96264c894653f0e0c..0000000000000000000000000000000000000000 --- a/Oving12jaja/src/old +++ /dev/null @@ -1,33 +0,0 @@ -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> - ); - } -} diff --git a/Oving12jaja/src/widgets.js b/Oving12jaja/src/widgets.js deleted file mode 100644 index 1de6a71976e517dc43a4eb35117f931a7b46b87b..0000000000000000000000000000000000000000 --- a/Oving12jaja/src/widgets.js +++ /dev/null @@ -1,57 +0,0 @@ -// @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); - }} - > - × - </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' }); - }); - } -}