chore: Add license
Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
parent
a5a9d5cca5
commit
7205ef8871
21 changed files with 59 additions and 0 deletions
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2022 Christoph Heiss <contact@christoph-heiss.at>
|
||||
|
||||
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.
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
const crypto = require('node:crypto');
|
||||
const blake2b = require('blake2b');
|
||||
const sqlite3 = require('sqlite3');
|
||||
|
|
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -7,6 +7,7 @@
|
|||
"": {
|
||||
"name": "wgdash",
|
||||
"version": "0.1.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@js-temporal/polyfill": "^0.4.1",
|
||||
"blake2b": "^2.1.4",
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"name": "wgdash",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:christoph-heiss/wgdash.git"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { useState, ReactNode, SyntheticEvent } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { useRouter } from 'next/router';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import Peer from 'components/peer';
|
||||
import type { WireguardInterface } from 'lib/wireguard';
|
||||
import { formatTraffic } from 'lib/utils';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import type { WireguardPeer } from 'lib/wireguard';
|
||||
import { formatKeepAlive, formatTimeDelta, formatTraffic } from 'lib/utils';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import path from 'node:path';
|
||||
import { Model } from 'objection';
|
||||
import Knex from 'knex';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { Temporal } from '@js-temporal/polyfill';
|
||||
|
||||
export function classNames(...args: any[]): string {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import {
|
||||
createRtNetlink,
|
||||
createGenericNetlink,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import {
|
||||
GetServerSidePropsContext,
|
||||
GetServerSidePropsResult,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { AppProps } from 'next/app';
|
||||
import Head from 'next/head';
|
||||
import 'styles/globals.scss';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import Document, {
|
||||
Html, Head, Main, NextScript,
|
||||
} from 'next/document';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import type { NextApiRequest, NextApiResponse } from 'next';
|
||||
import { getWireguardInterfaces, WireguardInterface } from 'lib/wireguard';
|
||||
import { withSessionRoute } from 'lib/withSession';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { NextApiRequest, NextApiResponse } from 'next';
|
||||
import blake2b from 'blake2b';
|
||||
import { User } from 'lib/database';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { NextApiRequest, NextApiResponse } from 'next';
|
||||
import { withSessionRoute } from 'lib/withSession';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { useEffect, useState } from 'react';
|
||||
import BaseLayout from 'components/base-layout';
|
||||
import Interface from 'components/interface';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { useState, SyntheticEvent } from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
import BaseLayout from 'components/base-layout';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
|
2
src/types/blake2b.d.ts
vendored
2
src/types/blake2b.d.ts
vendored
|
@ -1 +1,3 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
declare module 'blake2b';
|
||||
|
|
2
src/types/iron-session.d.ts
vendored
2
src/types/iron-session.d.ts
vendored
|
@ -1,3 +1,5 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
|
||||
declare module 'iron-session' {
|
||||
interface IronSessionData {
|
||||
user?: string;
|
||||
|
|
Reference in a new issue