Skip to content

Commit

Permalink
add License
Browse files Browse the repository at this point in the history
  • Loading branch information
bennet0496 committed Sep 6, 2023
1 parent 83e9d30 commit c44651d
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 6 deletions.
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Bennet Becker <dev@bennet.cc>

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.
4 changes: 4 additions & 0 deletions client.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* From https://dev.to/dcodeyt/create-a-button-with-a-loading-spinner-in-html-css-1c0h
*/

.button--loading .button__text {
visibility: hidden;
opacity: 0;
Expand Down
20 changes: 20 additions & 0 deletions client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
// Copyright (c) 2023 Bennet Becker <dev@bennet.cc>
//
// 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.

rcmail.addEventListener("plugin.nextcloud_login", function(data) {
if (data.status === "ok") {
rcmail.env.nextcloud_login_flow = data.url;
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "bbecker/nextcloud_attachments",
"license": "BSD-3-Clause",
"name": "bennet0496/nextcloud_attachments",
"license": "MIT",
"description": "This is an example plugin to demo how the integration works",
"type": "roundcube-plugin",
"authors": [
{
"name": "Bennet Becker",
"email": "bbecker@pks.mpg.de"
"email": "dev@bennet.cc"
}
],
"repositories": [
Expand Down
21 changes: 18 additions & 3 deletions nextcloud_attachments.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
<?php
//define('RCUBE_CONFIG_DIR', realpath(dirname(__FILE__)."/../../config"));
//define('RCUBE_PLUGINS_DIR', realpath(dirname(__FILE__)."/../../plugins"));
// Copyright (c) 2023 Bennet Becker <dev@bennet.cc>
//
//require_once dirname(__FILE__).'/vendor/framework/bootstrap.php';
// 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.

include dirname(__FILE__)."/vendor/autoload.php";

Expand Down

0 comments on commit c44651d

Please sign in to comment.