From 4665458245dd324e3239fe3f6b839b4cb2f12442 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Sun, 19 Jan 2020 13:14:52 +0100 Subject: [PATCH] Add license comment to each program file --- js/editor-types.ts | 16 ++++++++++++++++ js/highlight-all.ts | 16 ++++++++++++++++ js/index.ts | 16 ++++++++++++++++ js/views/config-link.ts | 16 ++++++++++++++++ js/views/config-page/config-page.ts | 16 ++++++++++++++++ js/views/editor-types/codemirror/codemirror.ts | 16 ++++++++++++++++ js/views/editor-types/codemirror/raku.ts | 16 ++++++++++++++++ js/views/editor-types/monaco/monaco.ts | 16 ++++++++++++++++ js/views/editor-types/textarea.ts | 16 ++++++++++++++++ js/views/editor/editor.ts | 16 ++++++++++++++++ js/views/editor/get-language.ts | 16 ++++++++++++++++ js/views/editor/output.ts | 16 ++++++++++++++++ js/views/editor/types.ts | 16 ++++++++++++++++ js/views/editor/wrapper-buttons.ts | 16 ++++++++++++++++ src/build.rs | 16 ++++++++++++++++ src/main.rs | 16 ++++++++++++++++ src/migration.rs | 16 ++++++++++++++++ src/models/js.rs | 16 ++++++++++++++++ src/models/language.rs | 16 ++++++++++++++++ src/models/mod.rs | 16 ++++++++++++++++ src/models/paste.rs | 16 ++++++++++++++++ src/models/rejection.rs | 16 ++++++++++++++++ src/models/session.rs | 16 ++++++++++++++++ src/routes/api_language.rs | 16 ++++++++++++++++ src/routes/api_v1/languages.rs | 16 ++++++++++++++++ src/routes/api_v1/mod.rs | 16 ++++++++++++++++ src/routes/api_v1/pastes.rs | 16 ++++++++++++++++ src/routes/config.rs | 16 ++++++++++++++++ src/routes/display_paste.rs | 16 ++++++++++++++++ src/routes/index.rs | 16 ++++++++++++++++ src/routes/insert_paste.rs | 16 ++++++++++++++++ src/routes/mod.rs | 16 ++++++++++++++++ src/routes/raw_paste.rs | 16 ++++++++++++++++ src/routes/run.rs | 16 ++++++++++++++++ 34 files changed, 544 insertions(+) diff --git a/js/editor-types.ts b/js/editor-types.ts index be103bf..ac0aeb9 100644 --- a/js/editor-types.ts +++ b/js/editor-types.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + export interface EditorType { setLanguage(identifier: string): void getValue(): string diff --git a/js/highlight-all.ts b/js/highlight-all.ts index b877ff5..26144a0 100644 --- a/js/highlight-all.ts +++ b/js/highlight-all.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import * as Prism from 'prismjs' import 'prismjs/plugins/autoloader/prism-autoloader' import 'prismjs/themes/prism.css' diff --git a/js/index.ts b/js/index.ts index aeefa02..dc03c22 100644 --- a/js/index.ts +++ b/js/index.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import addOptionsLink from './views/config-link' import createSettings from './views/config-page/config-page' import createEditor from './views/editor/editor' diff --git a/js/views/config-link.ts b/js/views/config-link.ts index 6c8340c..c2db95d 100644 --- a/js/views/config-link.ts +++ b/js/views/config-link.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + export default function addOptionsLink() { const li = document.createElement('li') const a = document.createElement('a') diff --git a/js/views/config-page/config-page.ts b/js/views/config-page/config-page.ts index 9d5efa2..a0ee87e 100644 --- a/js/views/config-page/config-page.ts +++ b/js/views/config-page/config-page.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import { getCurrentEditor, setCurrentEditor, types } from '../../editor-types' import './config-page.css' diff --git a/js/views/editor-types/codemirror/codemirror.ts b/js/views/editor-types/codemirror/codemirror.ts index ec96d33..0a05e65 100644 --- a/js/views/editor-types/codemirror/codemirror.ts +++ b/js/views/editor-types/codemirror/codemirror.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import * as CodeMirror from 'codemirror' import 'codemirror/lib/codemirror.css' import './codemirror.css' diff --git a/js/views/editor-types/codemirror/raku.ts b/js/views/editor-types/codemirror/raku.ts index 5e69d04..8f10354 100644 --- a/js/views/editor-types/codemirror/raku.ts +++ b/js/views/editor-types/codemirror/raku.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import * as CodeMirror from 'codemirror' CodeMirror.defineMode("raku", () => { diff --git a/js/views/editor-types/monaco/monaco.ts b/js/views/editor-types/monaco/monaco.ts index 8f92b5d..13f2851 100644 --- a/js/views/editor-types/monaco/monaco.ts +++ b/js/views/editor-types/monaco/monaco.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import * as monaco from 'monaco-editor' import './monaco.css' diff --git a/js/views/editor-types/textarea.ts b/js/views/editor-types/textarea.ts index c907f9f..e59b54b 100644 --- a/js/views/editor-types/textarea.ts +++ b/js/views/editor-types/textarea.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + class TextAreaEditor { textarea: HTMLTextAreaElement onChange: () => void diff --git a/js/views/editor/editor.ts b/js/views/editor/editor.ts index 4af4e8e..bd96e83 100644 --- a/js/views/editor/editor.ts +++ b/js/views/editor/editor.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import createTextareaEditor from '../editor-types/textarea' import getLanguage from './get-language' import Output from './output' diff --git a/js/views/editor/get-language.ts b/js/views/editor/get-language.ts index ed7df00..611e31f 100644 --- a/js/views/editor/get-language.ts +++ b/js/views/editor/get-language.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + const cache = new Map async function fetchLanguage(identifier) { diff --git a/js/views/editor/output.ts b/js/views/editor/output.ts index 28b64f8..e8e4124 100644 --- a/js/views/editor/output.ts +++ b/js/views/editor/output.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import './spinner.css' import { Wrapper } from './types' diff --git a/js/views/editor/types.ts b/js/views/editor/types.ts index e701938..7f0a810 100644 --- a/js/views/editor/types.ts +++ b/js/views/editor/types.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + export interface Wrapper { identifier: string, label: string, diff --git a/js/views/editor/wrapper-buttons.ts b/js/views/editor/wrapper-buttons.ts index be498d6..56d0d0a 100644 --- a/js/views/editor/wrapper-buttons.ts +++ b/js/views/editor/wrapper-buttons.ts @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import { Wrapper } from './types' export default class WrapperButtons { diff --git a/src/build.rs b/src/build.rs index aecb6e5..a8211a7 100644 --- a/src/build.rs +++ b/src/build.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use ructe::{Result, Ructe}; use std::fs; diff --git a/src/main.rs b/src/main.rs index 619ea37..3ab3a0e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + #[macro_use] extern crate diesel; diff --git a/src/migration.rs b/src/migration.rs index 9d47505..7ac9d7f 100644 --- a/src/migration.rs +++ b/src/migration.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::schema::{implementation_wrappers, implementations, languages}; use crate::Connection; use diesel::prelude::*; diff --git a/src/models/js.rs b/src/models/js.rs index 74066fe..04e9d1f 100644 --- a/src/models/js.rs +++ b/src/models/js.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use std::borrow::Cow; #[allow(unused_imports)] use std::fs; diff --git a/src/models/language.rs b/src/models/language.rs index 7d7535f..a1e097b 100644 --- a/src/models/language.rs +++ b/src/models/language.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::schema::languages::dsl::*; use crate::Connection; use diesel::prelude::*; diff --git a/src/models/mod.rs b/src/models/mod.rs index 43a4617..239578c 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + pub mod js; pub mod language; pub mod paste; diff --git a/src/models/paste.rs b/src/models/paste.rs index fe914e5..8845237 100644 --- a/src/models/paste.rs +++ b/src/models/paste.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::models::rejection::CustomRejection; use crate::schema::{languages, pastes}; use crate::Connection; diff --git a/src/models/rejection.rs b/src/models/rejection.rs index 68bcd9d..a096daa 100644 --- a/src/models/rejection.rs +++ b/src/models/rejection.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use std::error::Error; use std::fmt::{Display, Formatter, Result}; use warp::http::StatusCode; diff --git a/src/models/session.rs b/src/models/session.rs index 126eb30..7b68d58 100644 --- a/src/models/session.rs +++ b/src/models/session.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::Connection; use std::borrow::Cow; use warp::http::header::CONTENT_SECURITY_POLICY; diff --git a/src/routes/api_language.rs b/src/routes/api_language.rs index ade16a2..d1479cc 100644 --- a/src/routes/api_language.rs +++ b/src/routes/api_language.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::schema::{implementation_wrappers, implementations, languages}; use crate::Connection; use diesel::prelude::*; diff --git a/src/routes/api_v1/languages.rs b/src/routes/api_v1/languages.rs index faf3fc2..9e202d9 100644 --- a/src/routes/api_v1/languages.rs +++ b/src/routes/api_v1/languages.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::schema::languages; use crate::Connection; use diesel::prelude::*; diff --git a/src/routes/api_v1/mod.rs b/src/routes/api_v1/mod.rs index 51dd5e5..bb8cf20 100644 --- a/src/routes/api_v1/mod.rs +++ b/src/routes/api_v1/mod.rs @@ -1,2 +1,18 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + pub mod languages; pub mod pastes; diff --git a/src/routes/api_v1/pastes.rs b/src/routes/api_v1/pastes.rs index f35d362..9f19122 100644 --- a/src/routes/api_v1/pastes.rs +++ b/src/routes/api_v1/pastes.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::models::paste::{self, ExtraPasteParameters}; use crate::Connection; use chrono::{Duration, Utc}; diff --git a/src/routes/config.rs b/src/routes/config.rs index 763e092..6b67e29 100644 --- a/src/routes/config.rs +++ b/src/routes/config.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::models::session::Session; use crate::templates::{self, RenderRucte}; use warp::{Rejection, Reply}; diff --git a/src/routes/display_paste.rs b/src/routes/display_paste.rs index 5bbd315..0a92f83 100644 --- a/src/routes/display_paste.rs +++ b/src/routes/display_paste.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::models::language::{Language, Selection}; use crate::models::paste::{ExternPaste, Paste}; use crate::models::session::Session; diff --git a/src/routes/index.rs b/src/routes/index.rs index ffb277b..873fcbd 100644 --- a/src/routes/index.rs +++ b/src/routes/index.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::models::language::{Language, Selection}; use crate::models::session::Session; use crate::templates::{self, RenderRucte}; diff --git a/src/routes/insert_paste.rs b/src/routes/insert_paste.rs index f2f7991..5625511 100644 --- a/src/routes/insert_paste.rs +++ b/src/routes/insert_paste.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::models::paste; use crate::models::paste::ExtraPasteParameters; use crate::Connection; diff --git a/src/routes/mod.rs b/src/routes/mod.rs index 47bdd58..bac9610 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + mod api_language; mod api_v1; mod config; diff --git a/src/routes/raw_paste.rs b/src/routes/raw_paste.rs index e9e727c..8fc9cc2 100644 --- a/src/routes/raw_paste.rs +++ b/src/routes/raw_paste.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::models::paste::Paste; use crate::schema::pastes::dsl::*; use crate::Connection; diff --git a/src/routes/run.rs b/src/routes/run.rs index da539e3..fecee11 100644 --- a/src/routes/run.rs +++ b/src/routes/run.rs @@ -1,3 +1,19 @@ +// pastebin.run +// Copyright (C) 2020 Konrad Borowski +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::schema::implementation_wrappers; use crate::Connection; use diesel::prelude::*;