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
- daybreak color
- html links color
- license headers
- [debug mode](https://docs.python.org/3/library/asyncio-dev.html)
- `pyotherside.atexit()`
- 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 <QQmlEngine>
#include <QQmlContext>

View File

@ -1,3 +1,6 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
"""<SHORTDESC>"""
__pkg_name__ = "harmonyqml"
@ -9,4 +12,4 @@ __status__ = "Development"
__author__ = "miruka"
__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

View File

@ -1,3 +1,6 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under LGPLv3.
import asyncio
import signal
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 json
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 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 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 enum import auto
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 enum import Enum
from typing import Optional

View File

@ -1,5 +1,5 @@
# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under GPLv3.
# This file is part of harmonyqml, licensed under LGPLv3.
import re
@ -126,7 +126,8 @@ class HtmlFilter:
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", "")
width = el.attrib.get("width", "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 html
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 "../Base"
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.Controls 2.2
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.Controls 2.2
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
HImage {

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7
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.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
Label {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7
import "../../Base"
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.Layouts 1.3
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.Layouts 1.3
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.Layouts 1.3
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.Layouts 1.3
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.Layouts 1.3
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.Layouts 1.3
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 "../../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.Layouts 1.3
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.Layouts 1.3
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 SortFilterProxyModel 0.2
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.Layouts 1.3
import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
function onExitRequested(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
Qt.include("app.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")

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
function onAccountUpdated(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.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 SortFilterProxyModel 0.2
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 SortFilterProxyModel 0.2
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 SortFilterProxyModel 0.2
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 SortFilterProxyModel 0.2
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 SortFilterProxyModel 0.2
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 SortFilterProxyModel 0.2
import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import "../Base"
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.Layouts 1.3
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.Layouts 1.3
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.Controls 2.2
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.Layouts 1.3
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.Layouts 1.3
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.Layouts 1.3
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 "../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.Layouts 1.3
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.Layouts 1.3
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.Layouts 1.3
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.Layouts 1.3
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.Layouts 1.3
import "../Base"

View File

@ -1,3 +1,6 @@
// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7
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.Controls 2.2
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.Controls 2.2
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) {
// 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}]