mirror of
https://github.com/multipleof4/sune.git
synced 2026-09-18 11:35:43 +00:00
Compare commits
4 Commits
4cf6926453
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25b4b982ac | ||
| 916f41606c | |||
| a1fd2d5a05 | |||
| 9ce77bd05e |
2
.github/FUNDING.yml
vendored
2
.github/FUNDING.yml
vendored
@@ -1 +1 @@
|
|||||||
custom: https://paypal.me/planetrenox
|
github: multipleof4
|
||||||
|
|||||||
85
LICENSE
Normal file
85
LICENSE
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
1. Scope
|
||||||
|
|
||||||
|
The copyright holders offering software, source code, assets, or other content
|
||||||
|
under these terms ("we") grant the permissions below to every individual, team,
|
||||||
|
company, organization, and other entity ("you"). "Work" means the software,
|
||||||
|
source code, assets, and other content we offer under these terms.
|
||||||
|
|
||||||
|
2. Using the product and owning your output
|
||||||
|
|
||||||
|
You may use the customer-facing software or product for any purpose, including
|
||||||
|
commercial purposes, without payment, acknowledgment, or a copy of these terms.
|
||||||
|
This includes installing, running, accessing, and self-hosting it, and compiling
|
||||||
|
it solely to run it.
|
||||||
|
|
||||||
|
Whatever you create through ordinary use of the product is yours. We claim no
|
||||||
|
ownership of your output and impose no payment, acknowledgment, or licensing
|
||||||
|
conditions on it. You may use, sell, share, or license it however you choose.
|
||||||
|
Merely copying or extracting the underlying codebase or assetbase is reuse
|
||||||
|
under section 3.
|
||||||
|
|
||||||
|
3. Reusing code or assets
|
||||||
|
|
||||||
|
Subject to section 4, you have worldwide, nonexclusive permission to copy,
|
||||||
|
modify, combine, publish, distribute, sublicense, sell, and otherwise reuse any
|
||||||
|
or all of the Work, for any purpose, in source or other forms.
|
||||||
|
|
||||||
|
4. Finding common ground
|
||||||
|
|
||||||
|
If you reuse the codebase or assetbase, you are responsible for satisfying one
|
||||||
|
of the following conditions when you begin that reuse:
|
||||||
|
|
||||||
|
- If you cannot reasonably afford a monetary payment, give a simple
|
||||||
|
acknowledgment of the original software or repository in an appropriate
|
||||||
|
place, such as your README, source code, website, or documentation. A name
|
||||||
|
mention or a link is enough. No particular wording or placement is required.
|
||||||
|
|
||||||
|
- If you can afford a monetary payment, sponsor the original
|
||||||
|
repository through its Sponsor button. You alone decide the minimum
|
||||||
|
reasonable amount you can afford, considering the circumstances of the entity
|
||||||
|
reusing the Work. Sponsorship may be one-time or monthly. If you pay any
|
||||||
|
positive amount, acknowledgment and links are optional.
|
||||||
|
|
||||||
|
An entity may satisfy this condition through someone acting on its behalf.
|
||||||
|
|
||||||
|
5. Final settlement
|
||||||
|
|
||||||
|
Any positive amount successfully paid through that sponsorship route fully
|
||||||
|
and permanently satisfies the reuse condition for the entity making it or on
|
||||||
|
whose behalf it is made. Your chosen amount is accepted as sufficient,
|
||||||
|
regardless of your financial means.
|
||||||
|
We will not challenge its adequacy, request financial evidence, or demand a
|
||||||
|
larger amount. A record of the completed payment is sufficient proof; no
|
||||||
|
separate approval or agreement is needed.
|
||||||
|
|
||||||
|
The first completed monthly payment is enough. Later payments are optional,
|
||||||
|
and you may cancel recurring sponsorship without losing your permissions.
|
||||||
|
|
||||||
|
Likewise, an appropriate acknowledgment fully satisfies the condition for an
|
||||||
|
entity using the acknowledgment option.
|
||||||
|
|
||||||
|
Once satisfied, the condition covers all reuse by that entity of the Work
|
||||||
|
offered under these terms in the same original repository, including later
|
||||||
|
versions. No payment or acknowledgment is required again for additional uses,
|
||||||
|
copies, releases, or products. The permissions granted are then irrevocable
|
||||||
|
for that Work.
|
||||||
|
|
||||||
|
6. Choosing another license
|
||||||
|
|
||||||
|
After satisfying section 4, you may distribute or sublicense the Work,
|
||||||
|
modified or unmodified, under any license you choose. You do not have to include
|
||||||
|
these terms, keep this license, or require anyone else to follow it. These
|
||||||
|
terms require no retained copyright or license notices; the acknowledgment
|
||||||
|
option in section 4 is the only acknowledgment requirement.
|
||||||
|
|
||||||
|
Recipients of the Work you distribute under another license follow that
|
||||||
|
license and owe us no payment or acknowledgment under these terms for that
|
||||||
|
Work. Relicensing grants permissions; it does not transfer ownership of
|
||||||
|
the original Work.
|
||||||
|
|
||||||
|
7. Warranty
|
||||||
|
|
||||||
|
To the extent permitted by law, the Work is provided "as is," without any
|
||||||
|
warranty, including merchantability, fitness for a particular purpose, or
|
||||||
|
noninfringement. We are not liable for any claim, loss, or damages arising from
|
||||||
|
the Work or its use.
|
||||||
@@ -646,6 +646,11 @@ function kbUpdate() {
|
|||||||
el.chat.style.scrollPaddingBottom = fh + overlap + 16 + "px";
|
el.chat.style.scrollPaddingBottom = fh + overlap + 16 + "px";
|
||||||
}
|
}
|
||||||
function kbBind() {
|
function kbBind() {
|
||||||
|
el.input.addEventListener("keydown", (e) => {
|
||||||
|
if (e.key !== "Enter" || e.shiftKey || e.isComposing || e.keyCode === 229 || e.repeat || !matchMedia("(hover: hover) and (pointer: fine)").matches) return;
|
||||||
|
e.preventDefault();
|
||||||
|
el.composer.requestSubmit();
|
||||||
|
});
|
||||||
if (window.visualViewport) ["resize", "scroll"].forEach((ev) => window.visualViewport.addEventListener(ev, () => kbUpdate(), { passive: true }));
|
if (window.visualViewport) ["resize", "scroll"].forEach((ev) => window.visualViewport.addEventListener(ev, () => kbUpdate(), { passive: true }));
|
||||||
window.$(window).on("resize orientationchange", () => setTimeout(kbUpdate, 50));
|
window.$(window).on("resize orientationchange", () => setTimeout(kbUpdate, 50));
|
||||||
window.$(el.input).on("focus click", () => {
|
window.$(el.input).on("focus click", () => {
|
||||||
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -13,7 +13,7 @@
|
|||||||
<script defer src="//unpkg.com/alpinejs"></script>
|
<script defer src="//unpkg.com/alpinejs"></script>
|
||||||
|
|
||||||
|
|
||||||
<script type="module" crossorigin src="/assets/index-Bkco5XhY.js"></script>
|
<script type="module" crossorigin src="/assets/index-CWYcSOgO.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-DUC1RW1F.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-DUC1RW1F.css">
|
||||||
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
|
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
|
||||||
<body class="bg-white text-gray-900 selection:bg-black/10" x-data @click.window="if($event.target.closest('button')) haptic(); if(!document.getElementById('threadPopover').contains($event.target)&&!$event.target.closest('[data-thread-menu]')) hideThreadPopover(); if(!document.getElementById('sunePopover').contains($event.target)&&!$event.target.closest('[data-sune-menu]')) hideSunePopover(); if(!document.getElementById('userMenu').contains($event.target)&&!document.getElementById('userMenuBtn').contains($event.target)) document.getElementById('userMenu').classList.add('hidden')">
|
<body class="bg-white text-gray-900 selection:bg-black/10" x-data @click.window="if($event.target.closest('button')) haptic(); if(!document.getElementById('threadPopover').contains($event.target)&&!$event.target.closest('[data-thread-menu]')) hideThreadPopover(); if(!document.getElementById('sunePopover').contains($event.target)&&!$event.target.closest('[data-sune-menu]')) hideSunePopover(); if(!document.getElementById('userMenu').contains($event.target)&&!document.getElementById('userMenuBtn').contains($event.target)) document.getElementById('userMenu').classList.add('hidden')">
|
||||||
|
|||||||
2
dist/sw.js
vendored
2
dist/sw.js
vendored
@@ -1 +1 @@
|
|||||||
if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const d=e=>i(e,t),l={module:{uri:t},exports:o,require:d};s[t]=Promise.all(n.map(e=>l[e]||d(e))).then(e=>(r(...e),o))}}define(["./workbox-9c191d2f"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"192ad28f176e4a0e39e71d8a18d365c0"},{url:"assets/index-DUC1RW1F.css",revision:null},{url:"assets/index-Bkco5XhY.js",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
|
if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const c=e=>i(e,t),l={module:{uri:t},exports:o,require:c};s[t]=Promise.all(n.map(e=>l[e]||c(e))).then(e=>(r(...e),o))}}define(["./workbox-9c191d2f"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"f8c767b8fe6e11fa13e704d51b97ffbc"},{url:"assets/index-DUC1RW1F.css",revision:null},{url:"assets/index-CWYcSOgO.js",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ export function kbUpdate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function kbBind() {
|
export function kbBind() {
|
||||||
|
el.input.addEventListener('keydown', e => {
|
||||||
|
if (e.key !== 'Enter' || e.shiftKey || e.isComposing || e.keyCode === 229 || e.repeat || !matchMedia('(hover: hover) and (pointer: fine)').matches) return;
|
||||||
|
e.preventDefault();
|
||||||
|
el.composer.requestSubmit();
|
||||||
|
});
|
||||||
if (window.visualViewport) {
|
if (window.visualViewport) {
|
||||||
['resize', 'scroll'].forEach(ev => window.visualViewport.addEventListener(ev, () => kbUpdate(), { passive: true }));
|
['resize', 'scroll'].forEach(ev => window.visualViewport.addEventListener(ev, () => kbUpdate(), { passive: true }));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user