mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-03 01:10:08 +00:00
reuse: add SPDX headers to PHP source files, templates, and JS/CSS
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ac02e17a20
commit
a2f5895265
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
window.addEventListener("load", function(event) {
|
||||
if (document.hasFocus()) {
|
||||
// hide reload button if the site reloads automatically
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2025 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
basePath = document.getElementById("base_path")
|
||||
if (basePath) {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
window.addEventListener("beforeunload", function() {
|
||||
document.getElementById('overlay').classList.add('loading')
|
||||
});
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.querySelectorAll('input[data-confirm]').forEach((element) => {
|
||||
element.addEventListener('click', (event) => {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2025 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
// Don't run if the expected form isn't present.
|
||||
if (document.getElementById('options-form') === null) {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
// Clamav
|
||||
let clamav = document.getElementById("clamav");
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
"use strict";
|
||||
|
||||
(function (){
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
// increase memory limit to 2GB
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
class LogViewer {
|
||||
// Configure the interval in seconds for autoloading log data.
|
||||
autoloadIntervalSec = 5;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
/* SPDX-FileCopyrightText: 2026 Nextcloud GmbH <https://nextcloud.com> */
|
||||
/* SPDX-License-Identifier: AGPL-3.0-only */
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2026 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const observer = new MutationObserver((records) => {
|
||||
const node = records[0]?.addedNodes[0];
|
||||
// Text nodes also appear here but can't be scrolled to, so we have to check for the
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
const channel = new BroadcastChannel('tab')
|
||||
|
||||
channel.postMessage('second-tab')
|
||||
// note that listener is added after posting the message
|
||||
|
||||
channel.addEventListener('message', (msg) => {
|
||||
if (msg.data === 'second-tab') {
|
||||
// message received from 2nd tab
|
||||
document.getElementById('overlay').classList.add('loading')
|
||||
alert('Cannot open multiple instances. You can use AIO here by reloading the page.')
|
||||
}
|
||||
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const channel = new BroadcastChannel('tab')
|
||||
|
||||
channel.postMessage('second-tab')
|
||||
// note that listener is added after posting the message
|
||||
|
||||
channel.addEventListener('message', (msg) => {
|
||||
if (msg.data === 'second-tab') {
|
||||
// message received from 2nd tab
|
||||
document.getElementById('overlay').classList.add('loading')
|
||||
alert('Cannot open multiple instances. You can use AIO here by reloading the page.')
|
||||
}
|
||||
});
|
||||
@@ -1,3 +1,6 @@
|
||||
/* SPDX-FileCopyrightText: 2021 Nextcloud GmbH <https://nextcloud.com> */
|
||||
/* SPDX-License-Identifier: AGPL-3.0-only */
|
||||
|
||||
:root {
|
||||
--color-nextcloud-blue: #0082c9;
|
||||
--color-nextcloud-logo: var(--color-nextcloud-blue);
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2024 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
// timezone
|
||||
let timezone = document.getElementById("timezone");
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2024 Nextcloud GmbH <https://nextcloud.com>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Function to toggle theme
|
||||
function toggleTheme() {
|
||||
const currentTheme = document.documentElement.getAttribute('data-theme');
|
||||
|
||||
Reference in New Issue
Block a user