Add LGPL license headers

This commit is contained in:
miruka 2019-07-07 23:52:41 -04:00
parent 8dccfffc8b
commit 0f6474532b
77 changed files with 228 additions and 4 deletions

View File

@ -1,7 +1,6 @@
- "rejoin" leftbanner button if room is public - "rejoin" leftbanner button if room is public
- daybreak color - daybreak color
- html links color - html links color
- license headers
- [debug mode](https://docs.python.org/3/library/asyncio-dev.html) - [debug mode](https://docs.python.org/3/library/asyncio-dev.html)
- `pyotherside.atexit()` - `pyotherside.atexit()`
- way to put sidepane back to auto-sizing (snap) - way to put sidepane back to auto-sizing (snap)

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
#include <QGuiApplication> #include <QGuiApplication>
#include <QQmlEngine> #include <QQmlEngine>
#include <QQmlContext> #include <QQmlContext>

View File

@ -1,3 +1,6 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
"""<SHORTDESC>""" """<SHORTDESC>"""
__pkg_name__ = "harmonyqml" __pkg_name__ = "harmonyqml"
@ -9,4 +12,4 @@ __status__ = "Development"
__author__ = "miruka" __author__ = "miruka"
__email__ = "miruka@disroot.org" __email__ = "miruka@disroot.org"
__license__ = "GPLv3" __license__ = "LGPLv3"

View File

@ -1 +1,4 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
from .app import APP from .app import APP

View File

@ -1,3 +1,6 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
import asyncio import asyncio
import signal import signal
from concurrent.futures import Future from concurrent.futures import Future

View File

@ -1,3 +1,6 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
import asyncio import asyncio
import json import json
import random import random

View File

@ -0,0 +1,2 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.

View File

@ -1,3 +1,6 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
from typing import Any from typing import Any
from dataclasses import dataclass, field from dataclasses import dataclass, field

View File

@ -1,3 +1,6 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
from enum import Enum from enum import Enum
from typing import Any from typing import Any

View File

@ -1,3 +1,6 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
from datetime import datetime from datetime import datetime
from enum import auto from enum import auto
from typing import Any, Dict, List, Sequence, Type, Union from typing import Any, Dict, List, Sequence, Type, Union

View File

@ -1,3 +1,6 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
from datetime import datetime from datetime import datetime
from enum import Enum from enum import Enum
from typing import Optional from typing import Optional

View File

@ -1,5 +1,5 @@
# Copyright 2019 miruka # Copyright 2019 miruka
# This file is part of harmonyqml, licensed under GPLv3. # This file is part of harmonyqml, licensed under LGPLv3.
import re import re
@ -126,7 +126,8 @@ class HtmlFilter:
return el return el
def _wrap_img_in_a(self, el: HtmlElement) -> HtmlElement: @staticmethod
def _wrap_img_in_a(el: HtmlElement) -> HtmlElement:
link = el.attrib.get("src", "") link = el.attrib.get("src", "")
width = el.attrib.get("width", "256") width = el.attrib.get("width", "256")
height = el.attrib.get("height", "256") height = el.attrib.get("height", "256")

View File

@ -1,3 +1,6 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
import asyncio import asyncio
import html import html
import inspect import inspect

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import "../Base" import "../Base"
import "../utils.js" as Utils import "../utils.js" as Utils

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
HImage { HImage {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
Image { Image {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2
Label { Label {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
ListView { ListView {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
NumberAnimation { NumberAnimation {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
Rectangle { Rectangle {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
HLabel { HLabel {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
HAvatar { HAvatar {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
HRectangle { HRectangle {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 1.4 as Controls1 import QtQuick.Controls 1.4 as Controls1

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
HAvatar { HAvatar {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../Base" import "../../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import "../../Base" import "../../Base"
import "../../utils.js" as Utils import "../../utils.js" as Utils

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import "../../Base" import "../../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import "../../Base" import "../../Base"
import "../utils.js" as ChatJS import "../utils.js" as ChatJS

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../Base" import "../../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../Base" import "../../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import "../../Base" import "../../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../Base" import "../../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../Base" import "../../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2
import "../../Base" import "../../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
function onExitRequested(exit_code) { function onExitRequested(exit_code) {
Qt.exit(exit_code) Qt.exit(exit_code)
} }

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
// FIXME: Obsolete method, but need Qt 5.12+ for standard JS modules import // FIXME: Obsolete method, but need Qt 5.12+ for standard JS modules import
Qt.include("app.js") Qt.include("app.js")
Qt.include("users.js") Qt.include("users.js")

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
Qt.include("../utils.js") Qt.include("../utils.js")

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
function onAccountUpdated(user_id) { function onAccountUpdated(user_id) {
accounts.append({"userId": user_id}) accounts.append({"userId": user_id})
} }

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import "../Base" import "../Base"
HNoticePage { HNoticePage {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2
import io.thp.pyotherside 1.5 import io.thp.pyotherside 1.5

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import SortFilterProxyModel 0.2 import SortFilterProxyModel 0.2

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../Base" import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
QtObject { QtObject {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2
import "Base" import "Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
function arrayToModelItem(keys_name, array) { function arrayToModelItem(keys_name, array) {
// Convert an array to an object suitable to be in a model, example: // Convert an array to an object suitable to be in a model, example:
// [1, 2, 3] → [{keys_name: 1}, {keys_name: 2}, {keys_name: 3}] // [1, 2, 3] → [{keys_name: 1}, {keys_name: 2}, {keys_name: 3}]