carnet api
This commit is contained in:
parent
f7cbd3e2b3
commit
6cd4301687
@ -1,43 +1,58 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { getServerSession } from 'next-auth';
|
||||
import { authOptions } from '@/app/api/auth/[...nextauth]/route';
|
||||
import { getNextCloudService } from '@/lib/nextcloud-utils';
|
||||
|
||||
export async function GET(request: Request) {
|
||||
try {
|
||||
const session = await getServerSession();
|
||||
if (!session?.user?.email) {
|
||||
return NextResponse.json(
|
||||
{ error: 'Not authenticated' },
|
||||
{ status: 401 }
|
||||
);
|
||||
export async function GET() {
|
||||
console.log('🔍 Test endpoint called - Starting execution');
|
||||
|
||||
try {
|
||||
// Check session
|
||||
console.log('👤 Checking user session...');
|
||||
const session = await getServerSession(authOptions);
|
||||
|
||||
if (!session?.user?.email) {
|
||||
console.error('❌ No valid session found');
|
||||
return NextResponse.json(
|
||||
{ error: 'Unauthorized - No valid session' },
|
||||
{ status: 401 }
|
||||
);
|
||||
}
|
||||
console.log('✅ Session validated for user:', session.user.email);
|
||||
|
||||
// Initialize NextCloud service
|
||||
console.log('🔄 Initializing NextCloud service...');
|
||||
const service = await getNextCloudService();
|
||||
console.log('✅ NextCloud service initialized');
|
||||
|
||||
// Initialize user folders
|
||||
console.log('📁 Initializing user folders...');
|
||||
await service.initializeUserFolders(session.user.email);
|
||||
console.log('✅ User folders initialized');
|
||||
|
||||
// List notes
|
||||
console.log('📝 Attempting to list notes...');
|
||||
const notes = await service.listNotes(session.user.email);
|
||||
console.log('✅ Notes retrieved successfully:', notes.length, 'notes found');
|
||||
|
||||
return NextResponse.json({
|
||||
status: 'success',
|
||||
message: 'Test completed successfully',
|
||||
data: {
|
||||
userEmail: session.user.email,
|
||||
notesCount: notes.length,
|
||||
notes: notes
|
||||
}
|
||||
});
|
||||
|
||||
} catch (error) {
|
||||
console.error('❌ Test failed with error:', error);
|
||||
return NextResponse.json(
|
||||
{
|
||||
error: 'Test failed',
|
||||
details: error instanceof Error ? error.message : 'Unknown error'
|
||||
},
|
||||
{ status: 500 }
|
||||
);
|
||||
}
|
||||
|
||||
console.log('Test endpoint called with session:', {
|
||||
email: session.user.email,
|
||||
name: session.user.name
|
||||
});
|
||||
|
||||
const service = await getNextCloudService();
|
||||
|
||||
// Try to initialize folders
|
||||
await service.initializeUserFolders(session.user.email);
|
||||
|
||||
// Try to list notes
|
||||
const notes = await service.listNotes(session.user.email);
|
||||
|
||||
return NextResponse.json({
|
||||
success: true,
|
||||
message: 'Test completed successfully',
|
||||
notes
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Test endpoint error:', error);
|
||||
return NextResponse.json(
|
||||
{
|
||||
error: 'Test failed',
|
||||
message: error instanceof Error ? error.message : 'Unknown error'
|
||||
},
|
||||
{ status: 500 }
|
||||
);
|
||||
}
|
||||
}
|
||||
46
node_modules/.package-lock.json
generated
vendored
46
node_modules/.package-lock.json
generated
vendored
@ -269,6 +269,26 @@
|
||||
"node": ">= 10"
|
||||
}
|
||||
},
|
||||
"node_modules/@nextcloud/files": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/files/-/files-2.1.0.tgz",
|
||||
"integrity": "sha512-i5Q8oNPONwBWLnNjQOC3EmnUhExXpwmO45BonzaovzXdhFzFeT/g85kRNR8LWEjiK9vOMOdozz+z6I0adU0JlQ==",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"@nextcloud/l10n": "^1.3.0",
|
||||
"core-js": "^3.6.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@nextcloud/l10n": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/l10n/-/l10n-1.6.0.tgz",
|
||||
"integrity": "sha512-aKGlgrwN9OiafN791sYus0shfwNeU3PlrH6Oi9ISma6iJSvN6a8aJM8WGKCJ9pqBaTR5PrDuckuM/WnybBWb6A==",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"core-js": "^3.6.4",
|
||||
"node-gettext": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@nodelib/fs.scandir": {
|
||||
"version": "2.1.5",
|
||||
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
||||
@ -2644,6 +2664,17 @@
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/core-js": {
|
||||
"version": "3.41.0",
|
||||
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.41.0.tgz",
|
||||
"integrity": "sha512-SJ4/EHwS36QMJd6h/Rg+GyR4A5xE0FSI3eZ+iBVpfqf1x0eTSg1smWLHrA+2jQThZSh97fmSgFSU8B61nxosxA==",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/core-js"
|
||||
}
|
||||
},
|
||||
"node_modules/core-util-is": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
|
||||
@ -3569,6 +3600,13 @@
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||
},
|
||||
"node_modules/lodash.get": {
|
||||
"version": "4.4.2",
|
||||
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
|
||||
"integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==",
|
||||
"deprecated": "This package is deprecated. Use the optional chaining (?.) operator instead.",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/loose-envify": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
||||
@ -3831,6 +3869,14 @@
|
||||
"node": "^10 || ^12 || >=14"
|
||||
}
|
||||
},
|
||||
"node_modules/node-gettext": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/node-gettext/-/node-gettext-3.0.0.tgz",
|
||||
"integrity": "sha512-/VRYibXmVoN6tnSAY2JWhNRhWYJ8Cd844jrZU/DwLVoI4vBI6ceYbd8i42sYZ9uOgDH3S7vslIKOWV/ZrT2YBA==",
|
||||
"dependencies": {
|
||||
"lodash.get": "^4.4.2"
|
||||
}
|
||||
},
|
||||
"node_modules/node-releases": {
|
||||
"version": "2.0.19",
|
||||
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz",
|
||||
|
||||
10
node_modules/@nextcloud/files/.github/dependabot.yml
generated
vendored
Normal file
10
node_modules/@nextcloud/files/.github/dependabot.yml
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: npm
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: saturday
|
||||
time: "03:00"
|
||||
timezone: Europe/Paris
|
||||
open-pull-requests-limit: 10
|
||||
29
node_modules/@nextcloud/files/.github/workflows/dependabot-approve-merge.yml
generated
vendored
Normal file
29
node_modules/@nextcloud/files/.github/workflows/dependabot-approve-merge.yml
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
# This workflow is provided via the organization template repository
|
||||
#
|
||||
# https://github.com/nextcloud/.github
|
||||
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
|
||||
|
||||
name: Dependabot
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
branches:
|
||||
- master
|
||||
- stable*
|
||||
|
||||
jobs:
|
||||
auto-approve-merge:
|
||||
if: github.actor == 'dependabot[bot]'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# Github actions bot approve
|
||||
- uses: hmarr/auto-approve-action@v2
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# Nextcloud bot approve and merge request
|
||||
- uses: ahmadnassri/action-dependabot-auto-merge@v2
|
||||
with:
|
||||
target: minor
|
||||
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}
|
||||
19
node_modules/@nextcloud/files/.travis.yml
generated
vendored
Normal file
19
node_modules/@nextcloud/files/.travis.yml
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
language: node_js
|
||||
node_js: node
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- /^v\d++(\.\d+)?+(\.\d+)?+(\.\d+)?$/
|
||||
script:
|
||||
- npm run build
|
||||
- npm run test
|
||||
- npm run build
|
||||
- npm run build:doc
|
||||
deploy:
|
||||
provider: pages
|
||||
skip-cleanup: true
|
||||
github-token: $GITHUB_TOKEN
|
||||
keep-history: true
|
||||
local-dir: dist/doc
|
||||
on:
|
||||
tags: true
|
||||
23
node_modules/@nextcloud/files/CHANGELOG.md
generated
vendored
Normal file
23
node_modules/@nextcloud/files/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## 2.1.0 – 2021-09-28
|
||||
### Changed
|
||||
- Dependency updates
|
||||
|
||||
## 2.0.0 – 2021-04-07
|
||||
### Changed
|
||||
- Browserslist config updated, which means some older browsers are not supported anymore
|
||||
- Dependency updates
|
||||
|
||||
## 1.1.0 - 2020-06-04
|
||||
### Changed
|
||||
- formatFileSize works without the global OC
|
||||
- Dependency updates
|
||||
|
||||
## 1.0.1 - 2020-03-19
|
||||
### Changed
|
||||
- Dependency updates
|
||||
### Fixed
|
||||
- Update vulnerable packages
|
||||
674
node_modules/@nextcloud/files/LICENSE
generated
vendored
Normal file
674
node_modules/@nextcloud/files/LICENSE
generated
vendored
Normal file
@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
3
node_modules/@nextcloud/files/README.md
generated
vendored
Normal file
3
node_modules/@nextcloud/files/README.md
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# @nextcloud/files
|
||||
|
||||
Nextcloud Files helpers for Nextcloud apps and libraries
|
||||
15
node_modules/@nextcloud/files/babel.config.js
generated
vendored
Normal file
15
node_modules/@nextcloud/files/babel.config.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
"@babel/typescript",
|
||||
[
|
||||
"@babel/env",
|
||||
{
|
||||
useBuiltIns: "usage",
|
||||
corejs: "3.0.0",
|
||||
},
|
||||
],
|
||||
],
|
||||
"plugins": [
|
||||
"transform-class-properties",
|
||||
],
|
||||
};
|
||||
0
node_modules/@nextcloud/files/dist/doc/.nojekyll
generated
vendored
Normal file
0
node_modules/@nextcloud/files/dist/doc/.nojekyll
generated
vendored
Normal file
2328
node_modules/@nextcloud/files/dist/doc/assets/css/main.css
generated
vendored
Normal file
2328
node_modules/@nextcloud/files/dist/doc/assets/css/main.css
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
node_modules/@nextcloud/files/dist/doc/assets/images/icons.png
generated
vendored
Normal file
BIN
node_modules/@nextcloud/files/dist/doc/assets/images/icons.png
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.4 KiB |
BIN
node_modules/@nextcloud/files/dist/doc/assets/images/icons@2x.png
generated
vendored
Normal file
BIN
node_modules/@nextcloud/files/dist/doc/assets/images/icons@2x.png
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
BIN
node_modules/@nextcloud/files/dist/doc/assets/images/widgets.png
generated
vendored
Normal file
BIN
node_modules/@nextcloud/files/dist/doc/assets/images/widgets.png
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 480 B |
BIN
node_modules/@nextcloud/files/dist/doc/assets/images/widgets@2x.png
generated
vendored
Normal file
BIN
node_modules/@nextcloud/files/dist/doc/assets/images/widgets@2x.png
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 855 B |
1
node_modules/@nextcloud/files/dist/doc/assets/js/main.js
generated
vendored
Normal file
1
node_modules/@nextcloud/files/dist/doc/assets/js/main.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
node_modules/@nextcloud/files/dist/doc/assets/js/search.js
generated
vendored
Normal file
3
node_modules/@nextcloud/files/dist/doc/assets/js/search.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
var typedoc = typedoc || {};
|
||||
typedoc.search = typedoc.search || {};
|
||||
typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","64":"Function"},"rows":[{"id":0,"kind":1,"name":"\"humanfilesize\"","url":"modules/_humanfilesize_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":32,"name":"OC","url":"modules/_humanfilesize_.html#oc","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"humanfilesize\""},{"id":2,"kind":32,"name":"humanList","url":"modules/_humanfilesize_.html#humanlist","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"humanfilesize\""},{"id":3,"kind":64,"name":"formatFileSize","url":"modules/_humanfilesize_.html#formatfilesize","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"humanfilesize\""},{"id":4,"kind":1,"name":"\"index\"","url":"modules/_index_.html","classes":"tsd-kind-external-module"}]};
|
||||
169
node_modules/@nextcloud/files/dist/doc/globals.html
generated
vendored
Normal file
169
node_modules/@nextcloud/files/dist/doc/globals.html
generated
vendored
Normal file
@ -0,0 +1,169 @@
|
||||
<!doctype html>
|
||||
<html class="default no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>@nextcloud/files</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="assets/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="tsd-page-toolbar">
|
||||
<div class="container">
|
||||
<div class="table-wrap">
|
||||
<div class="table-cell" id="tsd-search" data-index="assets/js/search.js" data-base=".">
|
||||
<div class="field">
|
||||
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
||||
<input id="tsd-search-field" type="text" />
|
||||
</div>
|
||||
<ul class="results">
|
||||
<li class="state loading">Preparing search index...</li>
|
||||
<li class="state failure">The search index is not available</li>
|
||||
</ul>
|
||||
<a href="index.html" class="title">@nextcloud/files</a>
|
||||
</div>
|
||||
<div class="table-cell" id="tsd-widgets">
|
||||
<div id="tsd-filter">
|
||||
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
||||
<div class="tsd-filter-group">
|
||||
<div class="tsd-select" id="tsd-filter-visibility">
|
||||
<span class="tsd-select-label">All</span>
|
||||
<ul class="tsd-select-list">
|
||||
<li data-value="public">Public</li>
|
||||
<li data-value="protected">Public/Protected</li>
|
||||
<li data-value="private" class="selected">All</li>
|
||||
</ul>
|
||||
</div>
|
||||
<input type="checkbox" id="tsd-filter-inherited" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
||||
<input type="checkbox" id="tsd-filter-externals" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
||||
<input type="checkbox" id="tsd-filter-only-exported" />
|
||||
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tsd-page-title">
|
||||
<div class="container">
|
||||
<ul class="tsd-breadcrumb">
|
||||
<li>
|
||||
<a href="globals.html">Globals</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h1> @nextcloud/files</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container container-main">
|
||||
<div class="row">
|
||||
<div class="col-8 col-content">
|
||||
<section class="tsd-panel-group tsd-index-group">
|
||||
<h2>Index</h2>
|
||||
<section class="tsd-panel tsd-index-panel">
|
||||
<div class="tsd-index-content">
|
||||
<section class="tsd-index-section ">
|
||||
<h3>External modules</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-external-module"><a href="modules/_humanfilesize_.html" class="tsd-kind-icon">"humanfilesize"</a></li>
|
||||
<li class="tsd-kind-external-module"><a href="modules/_index_.html" class="tsd-kind-icon">"index"</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
||||
<nav class="tsd-navigation primary">
|
||||
<ul>
|
||||
<li class="globals current ">
|
||||
<a href="globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_humanfilesize_.html">"humanfilesize"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_index_.html">"index"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="with-border-bottom">
|
||||
<div class="container">
|
||||
<h2>Legend</h2>
|
||||
<div class="tsd-legend-group">
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
|
||||
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
|
||||
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
||||
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
||||
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
||||
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
||||
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
|
||||
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
||||
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
|
||||
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
||||
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
|
||||
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<div class="container tsd-generator">
|
||||
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
||||
</div>
|
||||
<div class="overlay"></div>
|
||||
<script src="assets/js/main.js"></script>
|
||||
<script>if (location.protocol == 'file:') document.write('<script src="assets/js/search.js"><' + '/script>');</script>
|
||||
</body>
|
||||
</html>
|
||||
161
node_modules/@nextcloud/files/dist/doc/index.html
generated
vendored
Normal file
161
node_modules/@nextcloud/files/dist/doc/index.html
generated
vendored
Normal file
@ -0,0 +1,161 @@
|
||||
<!doctype html>
|
||||
<html class="default no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>@nextcloud/files</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="assets/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="tsd-page-toolbar">
|
||||
<div class="container">
|
||||
<div class="table-wrap">
|
||||
<div class="table-cell" id="tsd-search" data-index="assets/js/search.js" data-base=".">
|
||||
<div class="field">
|
||||
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
||||
<input id="tsd-search-field" type="text" />
|
||||
</div>
|
||||
<ul class="results">
|
||||
<li class="state loading">Preparing search index...</li>
|
||||
<li class="state failure">The search index is not available</li>
|
||||
</ul>
|
||||
<a href="index.html" class="title">@nextcloud/files</a>
|
||||
</div>
|
||||
<div class="table-cell" id="tsd-widgets">
|
||||
<div id="tsd-filter">
|
||||
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
||||
<div class="tsd-filter-group">
|
||||
<div class="tsd-select" id="tsd-filter-visibility">
|
||||
<span class="tsd-select-label">All</span>
|
||||
<ul class="tsd-select-list">
|
||||
<li data-value="public">Public</li>
|
||||
<li data-value="protected">Public/Protected</li>
|
||||
<li data-value="private" class="selected">All</li>
|
||||
</ul>
|
||||
</div>
|
||||
<input type="checkbox" id="tsd-filter-inherited" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
||||
<input type="checkbox" id="tsd-filter-externals" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
||||
<input type="checkbox" id="tsd-filter-only-exported" />
|
||||
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tsd-page-title">
|
||||
<div class="container">
|
||||
<ul class="tsd-breadcrumb">
|
||||
<li>
|
||||
<a href="globals.html">Globals</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h1> @nextcloud/files</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container container-main">
|
||||
<div class="row">
|
||||
<div class="col-8 col-content">
|
||||
<div class="tsd-panel tsd-typography">
|
||||
<a href="#nextcloudfiles" id="nextcloudfiles" style="color: inherit; text-decoration: none;">
|
||||
<h1>@nextcloud/files</h1>
|
||||
</a>
|
||||
<p>Nextcloud Files helpers for Nextcloud apps and libraries</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
||||
<nav class="tsd-navigation primary">
|
||||
<ul>
|
||||
<li class="globals ">
|
||||
<a href="globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_humanfilesize_.html">"humanfilesize"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_index_.html">"index"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="with-border-bottom">
|
||||
<div class="container">
|
||||
<h2>Legend</h2>
|
||||
<div class="tsd-legend-group">
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
|
||||
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
|
||||
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
||||
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
||||
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
||||
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
||||
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
|
||||
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
||||
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
|
||||
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
||||
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
|
||||
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<div class="container tsd-generator">
|
||||
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
||||
</div>
|
||||
<div class="overlay"></div>
|
||||
<script src="assets/js/main.js"></script>
|
||||
<script>if (location.protocol == 'file:') document.write('<script src="assets/js/search.js"><' + '/script>');</script>
|
||||
</body>
|
||||
</html>
|
||||
239
node_modules/@nextcloud/files/dist/doc/modules/_humanfilesize_.html
generated
vendored
Normal file
239
node_modules/@nextcloud/files/dist/doc/modules/_humanfilesize_.html
generated
vendored
Normal file
@ -0,0 +1,239 @@
|
||||
<!doctype html>
|
||||
<html class="default no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>"humanfilesize" | @nextcloud/files</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../assets/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="tsd-page-toolbar">
|
||||
<div class="container">
|
||||
<div class="table-wrap">
|
||||
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
|
||||
<div class="field">
|
||||
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
||||
<input id="tsd-search-field" type="text" />
|
||||
</div>
|
||||
<ul class="results">
|
||||
<li class="state loading">Preparing search index...</li>
|
||||
<li class="state failure">The search index is not available</li>
|
||||
</ul>
|
||||
<a href="../index.html" class="title">@nextcloud/files</a>
|
||||
</div>
|
||||
<div class="table-cell" id="tsd-widgets">
|
||||
<div id="tsd-filter">
|
||||
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
||||
<div class="tsd-filter-group">
|
||||
<div class="tsd-select" id="tsd-filter-visibility">
|
||||
<span class="tsd-select-label">All</span>
|
||||
<ul class="tsd-select-list">
|
||||
<li data-value="public">Public</li>
|
||||
<li data-value="protected">Public/Protected</li>
|
||||
<li data-value="private" class="selected">All</li>
|
||||
</ul>
|
||||
</div>
|
||||
<input type="checkbox" id="tsd-filter-inherited" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
||||
<input type="checkbox" id="tsd-filter-externals" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
||||
<input type="checkbox" id="tsd-filter-only-exported" />
|
||||
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tsd-page-title">
|
||||
<div class="container">
|
||||
<ul class="tsd-breadcrumb">
|
||||
<li>
|
||||
<a href="../globals.html">Globals</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="_humanfilesize_.html">"humanfilesize"</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>External module "humanfilesize"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container container-main">
|
||||
<div class="row">
|
||||
<div class="col-8 col-content">
|
||||
<section class="tsd-panel-group tsd-index-group">
|
||||
<h2>Index</h2>
|
||||
<section class="tsd-panel tsd-index-panel">
|
||||
<div class="tsd-index-content">
|
||||
<section class="tsd-index-section tsd-is-not-exported">
|
||||
<h3>Variables</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="_humanfilesize_.html#oc" class="tsd-kind-icon">OC</a></li>
|
||||
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="_humanfilesize_.html#humanlist" class="tsd-kind-icon">human<wbr>List</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Functions</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="_humanfilesize_.html#formatfilesize" class="tsd-kind-icon">format<wbr>File<wbr>Size</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section class="tsd-panel-group tsd-member-group tsd-is-not-exported">
|
||||
<h2>Variables</h2>
|
||||
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
|
||||
<a name="oc" class="tsd-anchor"></a>
|
||||
<h3>OC</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">OC<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">OC</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">OC</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/ChristophWurst/nextcloud-files/blob/6c16ae8/lib/humanfilesize.ts#L3">humanfilesize.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
|
||||
<a name="humanlist" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagConst">Const</span> human<wbr>List</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">human<wbr>List<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = ['B', 'KB', 'MB', 'GB', 'TB']</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/ChristophWurst/nextcloud-files/blob/6c16ae8/lib/humanfilesize.ts#L5">humanfilesize.ts:5</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
</section>
|
||||
</section>
|
||||
<section class="tsd-panel-group tsd-member-group ">
|
||||
<h2>Functions</h2>
|
||||
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
|
||||
<a name="formatfilesize" class="tsd-anchor"></a>
|
||||
<h3>format<wbr>File<wbr>Size</h3>
|
||||
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
|
||||
<li class="tsd-signature tsd-kind-icon">format<wbr>File<wbr>Size<span class="tsd-signature-symbol">(</span>size<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, skipSmallSizes<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/ChristophWurst/nextcloud-files/blob/6c16ae8/lib/humanfilesize.ts#L7">humanfilesize.ts:7</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>size: <span class="tsd-signature-type">number</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> skipSmallSizes: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
||||
<nav class="tsd-navigation primary">
|
||||
<ul>
|
||||
<li class="globals ">
|
||||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="_humanfilesize_.html">"humanfilesize"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="_index_.html">"index"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
|
||||
<a href="_humanfilesize_.html#oc" class="tsd-kind-icon">OC</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
|
||||
<a href="_humanfilesize_.html#humanlist" class="tsd-kind-icon">human<wbr>List</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-function tsd-parent-kind-external-module">
|
||||
<a href="_humanfilesize_.html#formatfilesize" class="tsd-kind-icon">format<wbr>File<wbr>Size</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="with-border-bottom">
|
||||
<div class="container">
|
||||
<h2>Legend</h2>
|
||||
<div class="tsd-legend-group">
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
|
||||
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
|
||||
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
||||
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
||||
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
||||
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
||||
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
|
||||
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
||||
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
|
||||
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
||||
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
|
||||
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<div class="container tsd-generator">
|
||||
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
||||
</div>
|
||||
<div class="overlay"></div>
|
||||
<script src="../assets/js/main.js"></script>
|
||||
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
|
||||
</body>
|
||||
</html>
|
||||
158
node_modules/@nextcloud/files/dist/doc/modules/_index_.html
generated
vendored
Normal file
158
node_modules/@nextcloud/files/dist/doc/modules/_index_.html
generated
vendored
Normal file
@ -0,0 +1,158 @@
|
||||
<!doctype html>
|
||||
<html class="default no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>"index" | @nextcloud/files</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../assets/css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="tsd-page-toolbar">
|
||||
<div class="container">
|
||||
<div class="table-wrap">
|
||||
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
|
||||
<div class="field">
|
||||
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
||||
<input id="tsd-search-field" type="text" />
|
||||
</div>
|
||||
<ul class="results">
|
||||
<li class="state loading">Preparing search index...</li>
|
||||
<li class="state failure">The search index is not available</li>
|
||||
</ul>
|
||||
<a href="../index.html" class="title">@nextcloud/files</a>
|
||||
</div>
|
||||
<div class="table-cell" id="tsd-widgets">
|
||||
<div id="tsd-filter">
|
||||
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
||||
<div class="tsd-filter-group">
|
||||
<div class="tsd-select" id="tsd-filter-visibility">
|
||||
<span class="tsd-select-label">All</span>
|
||||
<ul class="tsd-select-list">
|
||||
<li data-value="public">Public</li>
|
||||
<li data-value="protected">Public/Protected</li>
|
||||
<li data-value="private" class="selected">All</li>
|
||||
</ul>
|
||||
</div>
|
||||
<input type="checkbox" id="tsd-filter-inherited" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
||||
<input type="checkbox" id="tsd-filter-externals" checked />
|
||||
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
||||
<input type="checkbox" id="tsd-filter-only-exported" />
|
||||
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tsd-page-title">
|
||||
<div class="container">
|
||||
<ul class="tsd-breadcrumb">
|
||||
<li>
|
||||
<a href="../globals.html">Globals</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="_index_.html">"index"</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>External module "index"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container container-main">
|
||||
<div class="row">
|
||||
<div class="col-8 col-content">
|
||||
</div>
|
||||
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
||||
<nav class="tsd-navigation primary">
|
||||
<ul>
|
||||
<li class="globals ">
|
||||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="_humanfilesize_.html">"humanfilesize"</a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="_index_.html">"index"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="with-border-bottom">
|
||||
<div class="container">
|
||||
<h2>Legend</h2>
|
||||
<div class="tsd-legend-group">
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
|
||||
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
|
||||
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
||||
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
||||
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
||||
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
||||
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
|
||||
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
||||
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
|
||||
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
||||
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
|
||||
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
|
||||
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<div class="container tsd-generator">
|
||||
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
||||
</div>
|
||||
<div class="overlay"></div>
|
||||
<script src="../assets/js/main.js"></script>
|
||||
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
|
||||
</body>
|
||||
</html>
|
||||
33
node_modules/@nextcloud/files/dist/filepicker.d.ts
generated
vendored
Normal file
33
node_modules/@nextcloud/files/dist/filepicker.d.ts
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
export declare enum FilePickerType {
|
||||
Choose = 1,
|
||||
Move = 2,
|
||||
Copy = 3,
|
||||
CopyMove = 4
|
||||
}
|
||||
export declare class FilePicker {
|
||||
private title;
|
||||
private multiSelect;
|
||||
private mimeTypeFiler;
|
||||
private modal;
|
||||
private type;
|
||||
private path?;
|
||||
constructor(title: string, multiSelect: boolean, mimeTypeFilter: string[], modal: boolean, type: FilePickerType, path?: string);
|
||||
pick(): Promise<string>;
|
||||
}
|
||||
export declare class FilePickerBuilder {
|
||||
private title;
|
||||
private multiSelect;
|
||||
private mimeTypeFiler;
|
||||
private modal;
|
||||
private type;
|
||||
private path?;
|
||||
constructor(title: string);
|
||||
setMultiSelect(ms: boolean): FilePickerBuilder;
|
||||
addMimeTypeFilter(filter: string): FilePickerBuilder;
|
||||
setMimeTypeFilter(filter: string[]): FilePickerBuilder;
|
||||
setModal(modal: boolean): FilePickerBuilder;
|
||||
setType(type: FilePickerType): FilePickerBuilder;
|
||||
startAt(path: string): FilePickerBuilder;
|
||||
build(): FilePicker;
|
||||
}
|
||||
export declare function getFilePickerBuilder(title: string): FilePickerBuilder;
|
||||
70
node_modules/@nextcloud/files/dist/filepicker.js
generated
vendored
Normal file
70
node_modules/@nextcloud/files/dist/filepicker.js
generated
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
"use strict";
|
||||
/// <reference types="nextcloud-typings" />
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var FilePickerType;
|
||||
(function (FilePickerType) {
|
||||
FilePickerType[FilePickerType["Choose"] = 1] = "Choose";
|
||||
FilePickerType[FilePickerType["Move"] = 2] = "Move";
|
||||
FilePickerType[FilePickerType["Copy"] = 3] = "Copy";
|
||||
FilePickerType[FilePickerType["CopyMove"] = 4] = "CopyMove";
|
||||
})(FilePickerType = exports.FilePickerType || (exports.FilePickerType = {}));
|
||||
var FilePicker = /** @class */ (function () {
|
||||
function FilePicker(title, multiSelect, mimeTypeFilter, modal, type, path) {
|
||||
this.title = title;
|
||||
this.multiSelect = multiSelect;
|
||||
this.mimeTypeFiler = mimeTypeFilter;
|
||||
this.modal = modal;
|
||||
this.type = type;
|
||||
this.path = path;
|
||||
}
|
||||
FilePicker.prototype.pick = function () {
|
||||
var _this = this;
|
||||
return new Promise(function (res, rej) {
|
||||
OC.dialogs.filepicker(_this.title, res, _this.multiSelect, _this.mimeTypeFiler, _this.modal, _this.type, _this.path);
|
||||
});
|
||||
};
|
||||
return FilePicker;
|
||||
}());
|
||||
exports.FilePicker = FilePicker;
|
||||
var FilePickerBuilder = /** @class */ (function () {
|
||||
function FilePickerBuilder(title) {
|
||||
this.multiSelect = false;
|
||||
this.mimeTypeFiler = [];
|
||||
this.modal = true;
|
||||
this.type = FilePickerType.Choose;
|
||||
this.title = title;
|
||||
}
|
||||
FilePickerBuilder.prototype.setMultiSelect = function (ms) {
|
||||
this.multiSelect = ms;
|
||||
return this;
|
||||
};
|
||||
FilePickerBuilder.prototype.addMimeTypeFilter = function (filter) {
|
||||
this.mimeTypeFiler.push(filter);
|
||||
return this;
|
||||
};
|
||||
FilePickerBuilder.prototype.setMimeTypeFilter = function (filter) {
|
||||
this.mimeTypeFiler = filter;
|
||||
return this;
|
||||
};
|
||||
FilePickerBuilder.prototype.setModal = function (modal) {
|
||||
this.modal = modal;
|
||||
return this;
|
||||
};
|
||||
FilePickerBuilder.prototype.setType = function (type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
};
|
||||
FilePickerBuilder.prototype.startAt = function (path) {
|
||||
this.path = path;
|
||||
return this;
|
||||
};
|
||||
FilePickerBuilder.prototype.build = function () {
|
||||
return new FilePicker(this.title, this.multiSelect, this.mimeTypeFiler, this.modal, this.type, this.path);
|
||||
};
|
||||
return FilePickerBuilder;
|
||||
}());
|
||||
exports.FilePickerBuilder = FilePickerBuilder;
|
||||
function getFilePickerBuilder(title) {
|
||||
return new FilePickerBuilder(title);
|
||||
}
|
||||
exports.getFilePickerBuilder = getFilePickerBuilder;
|
||||
1
node_modules/@nextcloud/files/dist/filepicker.js.map
generated
vendored
Normal file
1
node_modules/@nextcloud/files/dist/filepicker.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../lib/filepicker.ts"],"names":["FilePickerType","FilePicker","title","multiSelect","mimeTypeFilter","modal","type","path","mimeTypeFiler","Promise","res","rej","OC","dialogs","filepicker","FilePickerBuilder","Choose","ms","filter","push"],"mappings":";;;;;;;;;;;;;;;;;AAAA;IAKYA,c;;;WAAAA,c;AAAAA,EAAAA,c,CAAAA,c;AAAAA,EAAAA,c,CAAAA,c;AAAAA,EAAAA,c,CAAAA,c;AAAAA,EAAAA,c,CAAAA,c;GAAAA,c,8BAAAA,c;;IAOCC,U;;;AAQT,sBAAmBC,KAAnB,EACIC,WADJ,EAEIC,cAFJ,EAGIC,KAHJ,EAIIC,IAJJ,EAKIC,IALJ,EAKmB;AAAA;;AACf,SAAKL,KAAL,GAAaA,KAAb;AACA,SAAKC,WAAL,GAAmBA,WAAnB;AACA,SAAKK,aAAL,GAAqBJ,cAArB;AACA,SAAKC,KAAL,GAAaA,KAAb;AACA,SAAKC,IAAL,GAAYA,IAAZ;AACA,SAAKC,IAAL,GAAYA,IAAZ;AACH;;;;2BAE8B;AAAA;;AAC3B,aAAO,IAAIE,OAAJ,CAAY,UAACC,GAAD,EAAMC,GAAN,EAAc;AAC7BC,QAAAA,EAAE,CAACC,OAAH,CAAWC,UAAX,CACI,KAAI,CAACZ,KADT,EAEIQ,GAFJ,EAGI,KAAI,CAACP,WAHT,EAII,KAAI,CAACK,aAJT,EAKI,KAAI,CAACH,KALT,EAMI,KAAI,CAACC,IANT,EAOI,KAAI,CAACC,IAPT;AASH,OAVM,CAAP;AAWH;;;;;;;;IAGQQ,iB;;;AAQT,6BAAmBb,KAAnB,EAAkC;AAAA;;AAAA,SAN1BC,WAM0B,GANH,KAMG;AAAA,SAL1BK,aAK0B,GALA,EAKA;AAAA,SAJ1BH,KAI0B,GAJT,IAIS;AAAA,SAH1BC,IAG0B,GAHHN,cAAc,CAACgB,MAGZ;AAC9B,SAAKd,KAAL,GAAaA,KAAb;AACH;;;;mCAEqBe,E,EAAgC;AAClD,WAAKd,WAAL,GAAmBc,EAAnB;AACA,aAAO,IAAP;AACH;;;sCAEwBC,M,EAAmC;AACxD,WAAKV,aAAL,CAAmBW,IAAnB,CAAwBD,MAAxB;AACA,aAAO,IAAP;AACH;;;sCAEwBA,M,EAAqC;AAC1D,WAAKV,aAAL,GAAqBU,MAArB;AACA,aAAO,IAAP;AACH;;;6BAEeb,K,EAAmC;AAC/C,WAAKA,KAAL,GAAaA,KAAb;AACA,aAAO,IAAP;AACH;;;4BAEcC,I,EAAyC;AACpD,WAAKA,IAAL,GAAYA,IAAZ;AACA,aAAO,IAAP;AACH;;;4BAEcC,I,EAAiC;AAC5C,WAAKA,IAAL,GAAYA,IAAZ;AACA,aAAO,IAAP;AACH;;;4BAE0B;AACvB,aAAO,IAAIN,UAAJ,CACH,KAAKC,KADF,EAEH,KAAKC,WAFF,EAGH,KAAKK,aAHF,EAIH,KAAKH,KAJF,EAKH,KAAKC,IALF,EAMH,KAAKC,IANF,CAAP;AAQH","sourcesContent":["/// <reference types=\"nextcloud-typings\" />\n\ntype OC16to17 = Nextcloud.v16.OC | Nextcloud.v17.OC\ndeclare var OC: OC16to17;\n\nexport enum FilePickerType {\n Choose = 1,\n Move = 2,\n Copy = 3,\n CopyMove = 4,\n}\n\nexport class FilePicker {\n private title: string\n private multiSelect: boolean\n private mimeTypeFiler: string[]\n private modal: boolean\n private type: FilePickerType\n private path?: string\n\n public constructor(title: string,\n multiSelect: boolean,\n mimeTypeFilter: string[],\n modal: boolean,\n type: FilePickerType,\n path?: string) {\n this.title = title\n this.multiSelect = multiSelect\n this.mimeTypeFiler = mimeTypeFilter\n this.modal = modal\n this.type = type\n this.path = path\n }\n\n public pick(): Promise<string> {\n return new Promise((res, rej) => {\n OC.dialogs.filepicker(\n this.title,\n res,\n this.multiSelect,\n this.mimeTypeFiler,\n this.modal,\n this.type,\n this.path\n )\n })\n }\n}\n\nexport class FilePickerBuilder {\n private title: string\n private multiSelect: boolean = false\n private mimeTypeFiler: string[] = []\n private modal: boolean = true\n private type: FilePickerType = FilePickerType.Choose\n private path?: string\n\n public constructor(title: string) {\n this.title = title\n }\n\n public setMultiSelect(ms: boolean): FilePickerBuilder {\n this.multiSelect = ms\n return this\n }\n\n public addMimeTypeFilter(filter: string): FilePickerBuilder {\n this.mimeTypeFiler.push(filter)\n return this\n }\n\n public setMimeTypeFilter(filter: string[]): FilePickerBuilder {\n this.mimeTypeFiler = filter\n return this\n }\n\n public setModal(modal: boolean): FilePickerBuilder {\n this.modal = modal\n return this\n }\n\n public setType(type: FilePickerType): FilePickerBuilder {\n this.type = type\n return this\n }\n\n public startAt(path: string): FilePickerBuilder {\n this.path = path\n return this\n }\n\n public build(): FilePicker {\n return new FilePicker(\n this.title,\n this.multiSelect,\n this.mimeTypeFiler,\n this.modal,\n this.type,\n this.path\n )\n }\n\n}\n"],"file":"filepicker.js"}
|
||||
1
node_modules/@nextcloud/files/dist/humanfilesize.d.ts
generated
vendored
Normal file
1
node_modules/@nextcloud/files/dist/humanfilesize.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export declare function formatFileSize(size: number, skipSmallSizes?: boolean): string;
|
||||
41
node_modules/@nextcloud/files/dist/humanfilesize.js
generated
vendored
Normal file
41
node_modules/@nextcloud/files/dist/humanfilesize.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.formatFileSize = formatFileSize;
|
||||
|
||||
require("core-js/modules/es.parse-float.js");
|
||||
|
||||
var _l10n = require("@nextcloud/l10n");
|
||||
|
||||
var humanList = ['B', 'KB', 'MB', 'GB', 'TB'];
|
||||
|
||||
function formatFileSize(size) {
|
||||
var skipSmallSizes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
||||
// Calculate Log with base 1024: size = 1024 ** order
|
||||
var order = size > 0 ? Math.floor(Math.log(size) / Math.log(1024)) : 0; // Stay in range of the byte sizes that are defined
|
||||
|
||||
order = Math.min(humanList.length - 1, order);
|
||||
var readableFormat = humanList[order];
|
||||
var relativeSize = (size / Math.pow(1024, order)).toFixed(1);
|
||||
|
||||
if (skipSmallSizes === true && order === 0) {
|
||||
if (relativeSize !== "0.0") {
|
||||
return '< 1 KB';
|
||||
} else {
|
||||
return '0 KB';
|
||||
}
|
||||
}
|
||||
|
||||
if (order < 2) {
|
||||
relativeSize = parseFloat(relativeSize).toFixed(0);
|
||||
} else if (relativeSize.substr(relativeSize.length - 2, 2) === '.0') {
|
||||
relativeSize = relativeSize.substr(0, relativeSize.length - 2);
|
||||
} else {
|
||||
relativeSize = parseFloat(relativeSize).toLocaleString((0, _l10n.getCanonicalLocale)());
|
||||
}
|
||||
|
||||
return relativeSize + ' ' + readableFormat;
|
||||
}
|
||||
//# sourceMappingURL=humanfilesize.js.map
|
||||
1
node_modules/@nextcloud/files/dist/humanfilesize.js.map
generated
vendored
Normal file
1
node_modules/@nextcloud/files/dist/humanfilesize.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../lib/humanfilesize.ts"],"names":["humanList","formatFileSize","size","skipSmallSizes","order","Math","floor","log","min","length","readableFormat","relativeSize","pow","toFixed","parseFloat","substr","toLocaleString"],"mappings":";;;;;;;;;AAAA;;AAEA,IAAMA,SAAS,GAAG,CAAC,GAAD,EAAM,IAAN,EAAY,IAAZ,EAAkB,IAAlB,EAAwB,IAAxB,CAAlB;;AAEO,SAASC,cAAT,CAAwBC,IAAxB,EAA+E;AAAA,MAAzCC,cAAyC,uEAAf,KAAe;AAErF;AACA,MAAIC,KAAK,GAAGF,IAAI,GAAG,CAAP,GAAWG,IAAI,CAACC,KAAL,CAAWD,IAAI,CAACE,GAAL,CAASL,IAAT,IAAiBG,IAAI,CAACE,GAAL,CAAS,IAAT,CAA5B,CAAX,GAAyD,CAArE,CAHqF,CAIrF;;AACAH,EAAAA,KAAK,GAAGC,IAAI,CAACG,GAAL,CAASR,SAAS,CAACS,MAAV,GAAmB,CAA5B,EAA+BL,KAA/B,CAAR;AACA,MAAMM,cAAc,GAAGV,SAAS,CAACI,KAAD,CAAhC;AACA,MAAIO,YAAY,GAAG,CAACT,IAAI,GAAGG,IAAI,CAACO,GAAL,CAAS,IAAT,EAAeR,KAAf,CAAR,EAA+BS,OAA/B,CAAuC,CAAvC,CAAnB;;AACA,MAAIV,cAAc,KAAK,IAAnB,IAA2BC,KAAK,KAAK,CAAzC,EAA4C;AAC3C,QAAIO,YAAY,KAAK,KAArB,EAA4B;AAC3B,aAAO,QAAP;AACA,KAFD,MAEO;AACN,aAAO,MAAP;AACA;AACD;;AACD,MAAIP,KAAK,GAAG,CAAZ,EAAe;AACdO,IAAAA,YAAY,GAAGG,UAAU,CAACH,YAAD,CAAV,CAAyBE,OAAzB,CAAiC,CAAjC,CAAf;AACA,GAFD,MAEO,IAAIF,YAAY,CAACI,MAAb,CAAoBJ,YAAY,CAACF,MAAb,GAAsB,CAA1C,EAA6C,CAA7C,MAAoD,IAAxD,EAA8D;AACpEE,IAAAA,YAAY,GAAGA,YAAY,CAACI,MAAb,CAAoB,CAApB,EAAuBJ,YAAY,CAACF,MAAb,GAAsB,CAA7C,CAAf;AACA,GAFM,MAEA;AACNE,IAAAA,YAAY,GAAGG,UAAU,CAACH,YAAD,CAAV,CAAyBK,cAAzB,CAAwC,+BAAxC,CAAf;AACA;;AACD,SAAOL,YAAY,GAAG,GAAf,GAAqBD,cAA5B;AACA","sourcesContent":["import { getCanonicalLocale } from '@nextcloud/l10n'\n\nconst humanList = ['B', 'KB', 'MB', 'GB', 'TB'];\n\nexport function formatFileSize(size: number, skipSmallSizes: boolean = false): string {\n\n\t// Calculate Log with base 1024: size = 1024 ** order\n\tlet order = size > 0 ? Math.floor(Math.log(size) / Math.log(1024)) : 0;\n\t// Stay in range of the byte sizes that are defined\n\torder = Math.min(humanList.length - 1, order);\n\tconst readableFormat = humanList[order];\n\tlet relativeSize = (size / Math.pow(1024, order)).toFixed(1);\n\tif (skipSmallSizes === true && order === 0) {\n\t\tif (relativeSize !== \"0.0\") {\n\t\t\treturn '< 1 KB';\n\t\t} else {\n\t\t\treturn '0 KB';\n\t\t}\n\t}\n\tif (order < 2) {\n\t\trelativeSize = parseFloat(relativeSize).toFixed(0);\n\t} else if (relativeSize.substr(relativeSize.length - 2, 2) === '.0') {\n\t\trelativeSize = relativeSize.substr(0, relativeSize.length - 2);\n\t} else {\n\t\trelativeSize = parseFloat(relativeSize).toLocaleString(getCanonicalLocale());\n\t}\n\treturn relativeSize + ' ' + readableFormat;\n}\n"],"file":"humanfilesize.js"}
|
||||
1
node_modules/@nextcloud/files/dist/index.d.ts
generated
vendored
Normal file
1
node_modules/@nextcloud/files/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export { formatFileSize } from './humanfilesize';
|
||||
14
node_modules/@nextcloud/files/dist/index.js
generated
vendored
Normal file
14
node_modules/@nextcloud/files/dist/index.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "formatFileSize", {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _humanfilesize.formatFileSize;
|
||||
}
|
||||
});
|
||||
|
||||
var _humanfilesize = require("./humanfilesize");
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@nextcloud/files/dist/index.js.map
generated
vendored
Normal file
1
node_modules/@nextcloud/files/dist/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { formatFileSize } from './humanfilesize'\n"],"file":"index.js"}
|
||||
28
node_modules/@nextcloud/files/lib/humanfilesize.ts
generated
vendored
Normal file
28
node_modules/@nextcloud/files/lib/humanfilesize.ts
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
import { getCanonicalLocale } from '@nextcloud/l10n'
|
||||
|
||||
const humanList = ['B', 'KB', 'MB', 'GB', 'TB'];
|
||||
|
||||
export function formatFileSize(size: number, skipSmallSizes: boolean = false): string {
|
||||
|
||||
// Calculate Log with base 1024: size = 1024 ** order
|
||||
let order = size > 0 ? Math.floor(Math.log(size) / Math.log(1024)) : 0;
|
||||
// Stay in range of the byte sizes that are defined
|
||||
order = Math.min(humanList.length - 1, order);
|
||||
const readableFormat = humanList[order];
|
||||
let relativeSize = (size / Math.pow(1024, order)).toFixed(1);
|
||||
if (skipSmallSizes === true && order === 0) {
|
||||
if (relativeSize !== "0.0") {
|
||||
return '< 1 KB';
|
||||
} else {
|
||||
return '0 KB';
|
||||
}
|
||||
}
|
||||
if (order < 2) {
|
||||
relativeSize = parseFloat(relativeSize).toFixed(0);
|
||||
} else if (relativeSize.substr(relativeSize.length - 2, 2) === '.0') {
|
||||
relativeSize = relativeSize.substr(0, relativeSize.length - 2);
|
||||
} else {
|
||||
relativeSize = parseFloat(relativeSize).toLocaleString(getCanonicalLocale());
|
||||
}
|
||||
return relativeSize + ' ' + readableFormat;
|
||||
}
|
||||
1
node_modules/@nextcloud/files/lib/index.ts
generated
vendored
Normal file
1
node_modules/@nextcloud/files/lib/index.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export { formatFileSize } from './humanfilesize'
|
||||
39
node_modules/@nextcloud/files/package.json
generated
vendored
Normal file
39
node_modules/@nextcloud/files/package.json
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
"name": "@nextcloud/files",
|
||||
"version": "2.1.0",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "babel ./lib --out-dir dist --extensions '.ts,.tsx' --source-maps && tsc --emitDeclarationOnly",
|
||||
"build:doc": "typedoc --out dist/doc lib && touch dist/doc/.nojekyll",
|
||||
"check-types": "tsc",
|
||||
"dev": "babel ./lib --out-dir dist --extensions '.ts,.tsx' --watch",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watchAll"
|
||||
},
|
||||
"keywords": [
|
||||
"nextcloud"
|
||||
],
|
||||
"author": "Christoph Wurst",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"@nextcloud/l10n": "^1.3.0",
|
||||
"core-js": "^3.6.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.8.4",
|
||||
"@babel/core": "^7.8.7",
|
||||
"@babel/preset-env": "^7.8.7",
|
||||
"@babel/preset-typescript": "^7.8.3",
|
||||
"@nextcloud/browserslist-config": "^2.0.0",
|
||||
"babel-jest": "^27.0.2",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"jest": "^27.0.4",
|
||||
"typedoc": "^0.22.4",
|
||||
"typescript": "^4.0"
|
||||
},
|
||||
"browserslist": [
|
||||
"extends @nextcloud/browserslist-config"
|
||||
]
|
||||
}
|
||||
65
node_modules/@nextcloud/files/test/humanFileSize.test.js
generated
vendored
Normal file
65
node_modules/@nextcloud/files/test/humanFileSize.test.js
generated
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
import { formatFileSize } from '../lib/humanfilesize'
|
||||
|
||||
describe('humanFileSize', () => {
|
||||
|
||||
describe('formatFileSize', () => {
|
||||
|
||||
let locale
|
||||
|
||||
beforeEach(() => {
|
||||
locale = 'en'
|
||||
window.OC = {
|
||||
getLocale: () => locale,
|
||||
}
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
delete window.OC
|
||||
})
|
||||
|
||||
it('renders file sizes with the correct unit', function () {
|
||||
const data = [
|
||||
[0, '0 B'],
|
||||
["0", '0 B'],
|
||||
["A", 'NaN B'],
|
||||
[125, '125 B'],
|
||||
[128000, '125 KB'],
|
||||
[128000000, '122.1 MB'],
|
||||
[128000000000, '119.2 GB'],
|
||||
[128000000000000, '116.4 TB']
|
||||
]
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
expect(formatFileSize(data[i][0])).toEqual(data[i][1]);
|
||||
}
|
||||
});
|
||||
it('renders file sizes with the correct unit for small sizes', function () {
|
||||
var data = [
|
||||
[0, '0 KB'],
|
||||
[125, '< 1 KB'],
|
||||
[128000, '125 KB'],
|
||||
[128000000, '122.1 MB'],
|
||||
[128000000000, '119.2 GB'],
|
||||
[128000000000000, '116.4 TB']
|
||||
]
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
expect(formatFileSize(data[i][0], true)).toEqual(data[i][1]);
|
||||
}
|
||||
});
|
||||
it('renders file sizes with the correct locale', function () {
|
||||
locale = 'de'
|
||||
const data = [
|
||||
[0, '0 B'],
|
||||
["0", '0 B'],
|
||||
["A", 'NaN B'],
|
||||
[125, '125 B'],
|
||||
[128000, '125 KB'],
|
||||
[128000000, '122,1 MB'],
|
||||
[128000000000, '119,2 GB'],
|
||||
[128000000000000, '116,4 TB']
|
||||
]
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
expect(formatFileSize(data[i][0])).toEqual(data[i][1]);
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
14
node_modules/@nextcloud/files/tsconfig.json
generated
vendored
Normal file
14
node_modules/@nextcloud/files/tsconfig.json
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"declaration": true,
|
||||
"outDir": "./dist",
|
||||
"strict": true,
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": false,
|
||||
}
|
||||
}
|
||||
68
node_modules/@nextcloud/l10n/.github/dependabot.yml
generated
vendored
Normal file
68
node_modules/@nextcloud/l10n/.github/dependabot.yml
generated
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: npm
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: saturday
|
||||
time: "03:00"
|
||||
timezone: Europe/Paris
|
||||
open-pull-requests-limit: 10
|
||||
ignore:
|
||||
- dependency-name: "@babel/core"
|
||||
versions:
|
||||
- 7.12.10
|
||||
- 7.12.13
|
||||
- 7.12.16
|
||||
- 7.12.17
|
||||
- 7.13.10
|
||||
- 7.13.13
|
||||
- 7.13.8
|
||||
- dependency-name: "@babel/preset-env"
|
||||
versions:
|
||||
- 7.12.11
|
||||
- 7.12.13
|
||||
- 7.12.16
|
||||
- 7.12.17
|
||||
- 7.13.10
|
||||
- 7.13.12
|
||||
- 7.13.8
|
||||
- 7.13.9
|
||||
- dependency-name: typedoc
|
||||
versions:
|
||||
- 0.20.16
|
||||
- 0.20.19
|
||||
- 0.20.21
|
||||
- 0.20.24
|
||||
- 0.20.25
|
||||
- 0.20.28
|
||||
- 0.20.29
|
||||
- 0.20.30
|
||||
- 0.20.32
|
||||
- dependency-name: "@babel/cli"
|
||||
versions:
|
||||
- 7.12.10
|
||||
- 7.12.13
|
||||
- 7.12.16
|
||||
- 7.12.17
|
||||
- 7.13.0
|
||||
- 7.13.10
|
||||
- dependency-name: core-js
|
||||
versions:
|
||||
- 3.8.3
|
||||
- 3.9.0
|
||||
- 3.9.1
|
||||
- dependency-name: "@nextcloud/browserslist-config"
|
||||
versions:
|
||||
- 2.0.0
|
||||
- dependency-name: "@babel/preset-typescript"
|
||||
versions:
|
||||
- 7.12.13
|
||||
- 7.12.16
|
||||
- 7.12.17
|
||||
- dependency-name: typescript
|
||||
versions:
|
||||
- 4.0.7
|
||||
- dependency-name: node-notifier
|
||||
versions:
|
||||
- 8.0.1
|
||||
29
node_modules/@nextcloud/l10n/.github/workflows/dependabot-approve-merge.yml
generated
vendored
Normal file
29
node_modules/@nextcloud/l10n/.github/workflows/dependabot-approve-merge.yml
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
# This workflow is provided via the organization template repository
|
||||
#
|
||||
# https://github.com/nextcloud/.github
|
||||
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
|
||||
|
||||
name: Dependabot
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
branches:
|
||||
- master
|
||||
- stable*
|
||||
|
||||
jobs:
|
||||
auto-approve-merge:
|
||||
if: github.actor == 'dependabot[bot]'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# Github actions bot approve
|
||||
- uses: hmarr/auto-approve-action@v2
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# Nextcloud bot approve and merge request
|
||||
- uses: ahmadnassri/action-dependabot-auto-merge@v2
|
||||
with:
|
||||
target: minor
|
||||
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}
|
||||
19
node_modules/@nextcloud/l10n/.travis.yml
generated
vendored
Normal file
19
node_modules/@nextcloud/l10n/.travis.yml
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
language: node_js
|
||||
node_js: node
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- /^v\d++(\.\d+)?+(\.\d+)?+(\.\d+)?$/
|
||||
script:
|
||||
- npm run check-types
|
||||
- npm run build
|
||||
- npm run test
|
||||
- npm run build:doc
|
||||
deploy:
|
||||
provider: pages
|
||||
skip-cleanup: true
|
||||
github-token: $GITHUB_TOKEN
|
||||
keep-history: true
|
||||
local-dir: dist/doc
|
||||
on:
|
||||
tags: true
|
||||
62
node_modules/@nextcloud/l10n/CHANGELOG.md
generated
vendored
Normal file
62
node_modules/@nextcloud/l10n/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## 1.4.1 - 2020-09-07
|
||||
### Changed
|
||||
- Dependency updates
|
||||
### Fixed
|
||||
- Language detection of languages that have a `_` in their code (#172)
|
||||
|
||||
## 1.4.0 - 2020-08-31
|
||||
### Added
|
||||
- Nextcloud 20 support
|
||||
### Changed
|
||||
- Dependency updates
|
||||
|
||||
## 1.3.0 - 2020-06-04
|
||||
### Added
|
||||
- getCanonicalLocale
|
||||
### Changed
|
||||
- Dependency updates
|
||||
|
||||
## 1.2.3 - 2020-04-08
|
||||
### Changed
|
||||
- Dependency updates
|
||||
### Fixed
|
||||
- Source locale of translations is now set to 'en', so fewer warnings are printed
|
||||
|
||||
## 1.2.2 - 2020-04-06
|
||||
### Fixed
|
||||
- Update vulnerable packages
|
||||
|
||||
## 1.2.1 - 2020-04-06
|
||||
### Changed
|
||||
- Dependency updates
|
||||
### Fixed
|
||||
- Update vulnerable packages
|
||||
|
||||
## 1.2.0 - 2020-03-19
|
||||
### Added
|
||||
- Optional debug mode with logging, no console.warn for production builds
|
||||
### Changed
|
||||
- Dependency updates
|
||||
|
||||
## 1.1.1 - 2020-03-19
|
||||
### Changed
|
||||
- Dependency updates
|
||||
### Fixed
|
||||
- Update vulnerable packages
|
||||
|
||||
## 1.1.0 - 2020-02-21
|
||||
### Added
|
||||
- Gettext-based translation helpers for Nextcloud-independent translations (mostly for libraries)
|
||||
### Changed
|
||||
- Updated documentation
|
||||
- Updated dependencies
|
||||
|
||||
## 1.0.1 - 2020-01-08
|
||||
### Fixed
|
||||
- Translate `escape` option typo
|
||||
### Changed
|
||||
- Updated documentation
|
||||
674
node_modules/@nextcloud/l10n/LICENSE
generated
vendored
Normal file
674
node_modules/@nextcloud/l10n/LICENSE
generated
vendored
Normal file
@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
71
node_modules/@nextcloud/l10n/README.md
generated
vendored
Normal file
71
node_modules/@nextcloud/l10n/README.md
generated
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
# @nextcloud/l10n
|
||||
|
||||
[](https://travis-ci.com/nextcloud/nextcloud-l10n)
|
||||
[](https://www.npmjs.com/package/@nextcloud/l10n)
|
||||
[](https://nextcloud.github.io/nextcloud-l10n/)
|
||||
|
||||
Nextcloud L10n helpers for apps and libraries.
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
npm i -S @nextcloud/l10n
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### OC.L10n abstraction
|
||||
|
||||
You can use helpers in this package in order generate code that also works when it's not loaded on a Nextcloud page. This is primary useful for testing. The logic will just return the original string if the global variable `OC` isn't found.
|
||||
|
||||
In order to not break the l10n string extraction scripts, make sure to alias the imported function to match the legacy syntax:
|
||||
|
||||
```js
|
||||
import {translate as t, translatePlural as n} from '@nextcloud/l10n'
|
||||
|
||||
t('myapp', 'Hello!')
|
||||
n('myapp', '%n cloud', '%n clouds', 100)
|
||||
```
|
||||
|
||||
See the [localization docs](https://docs.nextcloud.com/server/stable/developer_manual/basics/front-end/l10n.html) for more info.
|
||||
|
||||
### Independent translation
|
||||
|
||||
You can use this package to translate your app or library independent of Nextcloud. For that you need .po(t) files. These can be extracted with [gettext-extractor](https://github.com/lukasgeiter/gettext-extractor).
|
||||
|
||||
```js
|
||||
import { getGettextBuilder } from '@nextcloud/l10n/gettext'
|
||||
|
||||
const lang = 'sv'
|
||||
const po = ... // Use https://github.com/smhg/gettext-parser to read and convert your .po(t) file
|
||||
|
||||
const gt = getGettextBuilder()
|
||||
.detectLocale()
|
||||
.addTranslation('sv', po)
|
||||
.build()
|
||||
```
|
||||
|
||||
#### Translate single string
|
||||
|
||||
```js
|
||||
gt.gettext('my source string')
|
||||
```
|
||||
|
||||
#### Placeholders
|
||||
|
||||
```js
|
||||
gt.gettext('this is a {placeholder}. and this is {key2}', {
|
||||
placeholder: 'test',
|
||||
key2: 'also a test',
|
||||
})
|
||||
```
|
||||
|
||||
See [the developer docs for general guidelines](https://docs.nextcloud.com/server/stable/developer_manual/basics/front-end/l10n.html).
|
||||
|
||||
#### Translate plurals
|
||||
|
||||
```js
|
||||
gt.ngettext('%n Mississippi', '%n Mississippi', 3)
|
||||
```
|
||||
|
||||
See [the developer docs for general guidelines](https://docs.nextcloud.com/server/stable/developer_manual/basics/front-end/l10n.html).
|
||||
15
node_modules/@nextcloud/l10n/babel.config.js
generated
vendored
Normal file
15
node_modules/@nextcloud/l10n/babel.config.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
"@babel/typescript",
|
||||
[
|
||||
"@babel/env",
|
||||
{
|
||||
useBuiltIns: "usage",
|
||||
corejs: "3.0.0",
|
||||
},
|
||||
],
|
||||
],
|
||||
"plugins": [
|
||||
"transform-class-properties",
|
||||
],
|
||||
};
|
||||
19
node_modules/@nextcloud/l10n/dist/gettext.d.ts
generated
vendored
Normal file
19
node_modules/@nextcloud/l10n/dist/gettext.d.ts
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
declare class GettextBuilder {
|
||||
private locale?;
|
||||
private translations;
|
||||
private debug;
|
||||
setLanguage(language: string): GettextBuilder;
|
||||
detectLocale(): GettextBuilder;
|
||||
addTranslation(language: string, data: any): GettextBuilder;
|
||||
enableDebugMode(): GettextBuilder;
|
||||
build(): GettextWrapper;
|
||||
}
|
||||
declare class GettextWrapper {
|
||||
private gt;
|
||||
constructor(locale: string, data: any, debug: boolean);
|
||||
private subtitudePlaceholders;
|
||||
gettext(original: string, placeholders?: object): string;
|
||||
ngettext(singular: string, plural: string, count: number, placeholders?: object): string;
|
||||
}
|
||||
export declare function getGettextBuilder(): GettextBuilder;
|
||||
export {};
|
||||
120
node_modules/@nextcloud/l10n/dist/gettext.js
generated
vendored
Normal file
120
node_modules/@nextcloud/l10n/dist/gettext.js
generated
vendored
Normal file
@ -0,0 +1,120 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.getGettextBuilder = getGettextBuilder;
|
||||
|
||||
require("core-js/modules/es.regexp.exec.js");
|
||||
|
||||
require("core-js/modules/es.string.replace.js");
|
||||
|
||||
require("core-js/modules/es.object.define-property.js");
|
||||
|
||||
require("core-js/modules/es.object.to-string.js");
|
||||
|
||||
require("core-js/modules/es.regexp.to-string.js");
|
||||
|
||||
var _nodeGettext = _interopRequireDefault(require("node-gettext"));
|
||||
|
||||
var _ = require(".");
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
||||
|
||||
var GettextBuilder = /*#__PURE__*/function () {
|
||||
function GettextBuilder() {
|
||||
_classCallCheck(this, GettextBuilder);
|
||||
|
||||
this.translations = {};
|
||||
this.debug = false;
|
||||
}
|
||||
|
||||
_createClass(GettextBuilder, [{
|
||||
key: "setLanguage",
|
||||
value: function setLanguage(language) {
|
||||
this.locale = language;
|
||||
return this;
|
||||
}
|
||||
}, {
|
||||
key: "detectLocale",
|
||||
value: function detectLocale() {
|
||||
return this.setLanguage((0, _.getLanguage)().replace('-', '_'));
|
||||
}
|
||||
}, {
|
||||
key: "addTranslation",
|
||||
value: function addTranslation(language, data) {
|
||||
this.translations[language] = data;
|
||||
return this;
|
||||
}
|
||||
}, {
|
||||
key: "enableDebugMode",
|
||||
value: function enableDebugMode() {
|
||||
this.debug = true;
|
||||
return this;
|
||||
}
|
||||
}, {
|
||||
key: "build",
|
||||
value: function build() {
|
||||
return new GettextWrapper(this.locale || 'en', this.translations, this.debug);
|
||||
}
|
||||
}]);
|
||||
|
||||
return GettextBuilder;
|
||||
}();
|
||||
|
||||
var GettextWrapper = /*#__PURE__*/function () {
|
||||
function GettextWrapper(locale, data, debug) {
|
||||
_classCallCheck(this, GettextWrapper);
|
||||
|
||||
this.gt = new _nodeGettext.default({
|
||||
debug: debug,
|
||||
sourceLocale: 'en'
|
||||
});
|
||||
|
||||
for (var key in data) {
|
||||
this.gt.addTranslations(key, 'messages', data[key]);
|
||||
}
|
||||
|
||||
this.gt.setLocale(locale);
|
||||
}
|
||||
|
||||
_createClass(GettextWrapper, [{
|
||||
key: "subtitudePlaceholders",
|
||||
value: function subtitudePlaceholders(translated, vars) {
|
||||
return translated.replace(/{([^{}]*)}/g, function (a, b) {
|
||||
var r = vars[b];
|
||||
|
||||
if (typeof r === 'string' || typeof r === 'number') {
|
||||
return r.toString();
|
||||
} else {
|
||||
return a;
|
||||
}
|
||||
});
|
||||
}
|
||||
}, {
|
||||
key: "gettext",
|
||||
value: function gettext(original) {
|
||||
var placeholders = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
return this.subtitudePlaceholders(this.gt.gettext(original), placeholders);
|
||||
}
|
||||
}, {
|
||||
key: "ngettext",
|
||||
value: function ngettext(singular, plural, count) {
|
||||
var placeholders = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
||||
return this.subtitudePlaceholders(this.gt.ngettext(singular, plural, count).replace(/%n/g, count.toString()), placeholders);
|
||||
}
|
||||
}]);
|
||||
|
||||
return GettextWrapper;
|
||||
}();
|
||||
|
||||
function getGettextBuilder() {
|
||||
return new GettextBuilder();
|
||||
}
|
||||
//# sourceMappingURL=gettext.js.map
|
||||
1
node_modules/@nextcloud/l10n/dist/gettext.js.map
generated
vendored
Normal file
1
node_modules/@nextcloud/l10n/dist/gettext.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"gettext.js","names":["GettextBuilder","translations","debug","language","locale","setLanguage","replace","data","GettextWrapper","gt","GetText","sourceLocale","key","addTranslations","setLocale","translated","vars","a","b","r","toString","original","placeholders","subtitudePlaceholders","gettext","singular","plural","count","ngettext","getGettextBuilder"],"sources":["../lib/gettext.ts"],"sourcesContent":["import GetText from \"node-gettext\"\n\nimport { getLanguage } from \".\"\n\nclass GettextBuilder {\n\n private locale?: string\n private translations = {}\n private debug = false\n\n setLanguage(language: string): GettextBuilder {\n this.locale = language\n return this\n }\n\n detectLocale(): GettextBuilder {\n return this.setLanguage(getLanguage().replace('-', '_'))\n }\n\n addTranslation(language: string, data: any): GettextBuilder {\n this.translations[language] = data\n return this\n }\n\n enableDebugMode(): GettextBuilder {\n this.debug = true\n return this\n }\n\n build(): GettextWrapper {\n return new GettextWrapper(this.locale || 'en', this.translations, this.debug)\n }\n\n}\n\nclass GettextWrapper {\n\n private gt: GetText\n\n constructor(locale: string, data: any, debug: boolean) {\n this.gt = new GetText({\n debug,\n sourceLocale: 'en',\n })\n\n for (let key in data) {\n this.gt.addTranslations(key, 'messages', data[key])\n }\n\n this.gt.setLocale(locale)\n }\n\n private subtitudePlaceholders(translated: string, vars: object): string {\n return translated.replace(/{([^{}]*)}/g, (a, b) => {\n const r = vars[b]\n if (typeof r === 'string' || typeof r === 'number') {\n return r.toString()\n } else {\n return a\n }\n })\n }\n\n gettext(original: string, placeholders: object = {}): string {\n return this.subtitudePlaceholders(\n this.gt.gettext(original),\n placeholders\n )\n }\n\n ngettext(singular: string, plural: string, count: number, placeholders: object = {}): string {\n return this.subtitudePlaceholders(\n this.gt.ngettext(singular, plural, count).replace(/%n/g, count.toString()),\n placeholders\n )\n }\n\n}\n\nexport function getGettextBuilder() {\n return new GettextBuilder()\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;AAEA;;;;;;;;;;IAEMA,c;;;;SAGMC,Y,GAAe,E;SACfC,K,GAAQ,K;;;;;WAEhB,qBAAYC,QAAZ,EAA8C;MAC1C,KAAKC,MAAL,GAAcD,QAAd;MACA,OAAO,IAAP;IACH;;;WAED,wBAA+B;MAC3B,OAAO,KAAKE,WAAL,CAAiB,qBAAcC,OAAd,CAAsB,GAAtB,EAA2B,GAA3B,CAAjB,CAAP;IACH;;;WAED,wBAAeH,QAAf,EAAiCI,IAAjC,EAA4D;MACxD,KAAKN,YAAL,CAAkBE,QAAlB,IAA8BI,IAA9B;MACA,OAAO,IAAP;IACH;;;WAED,2BAAkC;MAC9B,KAAKL,KAAL,GAAa,IAAb;MACA,OAAO,IAAP;IACH;;;WAED,iBAAwB;MACpB,OAAO,IAAIM,cAAJ,CAAmB,KAAKJ,MAAL,IAAe,IAAlC,EAAwC,KAAKH,YAA7C,EAA2D,KAAKC,KAAhE,CAAP;IACH;;;;;;IAICM,c;EAIF,wBAAYJ,MAAZ,EAA4BG,IAA5B,EAAuCL,KAAvC,EAAuD;IAAA;;IACnD,KAAKO,EAAL,GAAU,IAAIC,oBAAJ,CAAY;MAClBR,KAAK,EAALA,KADkB;MAElBS,YAAY,EAAE;IAFI,CAAZ,CAAV;;IAKA,KAAK,IAAIC,GAAT,IAAgBL,IAAhB,EAAsB;MAClB,KAAKE,EAAL,CAAQI,eAAR,CAAwBD,GAAxB,EAA6B,UAA7B,EAAyCL,IAAI,CAACK,GAAD,CAA7C;IACH;;IAED,KAAKH,EAAL,CAAQK,SAAR,CAAkBV,MAAlB;EACH;;;;WAED,+BAA8BW,UAA9B,EAAkDC,IAAlD,EAAwE;MACpE,OAAOD,UAAU,CAACT,OAAX,CAAmB,aAAnB,EAAkC,UAACW,CAAD,EAAIC,CAAJ,EAAU;QAC/C,IAAMC,CAAC,GAAGH,IAAI,CAACE,CAAD,CAAd;;QACA,IAAI,OAAOC,CAAP,KAAa,QAAb,IAAyB,OAAOA,CAAP,KAAa,QAA1C,EAAoD;UAChD,OAAOA,CAAC,CAACC,QAAF,EAAP;QACH,CAFD,MAEO;UACH,OAAOH,CAAP;QACH;MACJ,CAPM,CAAP;IAQH;;;WAED,iBAAQI,QAAR,EAA6D;MAAA,IAAnCC,YAAmC,uEAAZ,EAAY;MACzD,OAAO,KAAKC,qBAAL,CACH,KAAKd,EAAL,CAAQe,OAAR,CAAgBH,QAAhB,CADG,EAEHC,YAFG,CAAP;IAIH;;;WAED,kBAASG,QAAT,EAA2BC,MAA3B,EAA2CC,KAA3C,EAA6F;MAAA,IAAnCL,YAAmC,uEAAZ,EAAY;MACzF,OAAO,KAAKC,qBAAL,CACH,KAAKd,EAAL,CAAQmB,QAAR,CAAiBH,QAAjB,EAA2BC,MAA3B,EAAmCC,KAAnC,EAA0CrB,OAA1C,CAAkD,KAAlD,EAAyDqB,KAAK,CAACP,QAAN,EAAzD,CADG,EAEHE,YAFG,CAAP;IAIH;;;;;;AAIE,SAASO,iBAAT,GAA6B;EAChC,OAAO,IAAI7B,cAAJ,EAAP;AACH"}
|
||||
72
node_modules/@nextcloud/l10n/dist/index.d.ts
generated
vendored
Normal file
72
node_modules/@nextcloud/l10n/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
/**
|
||||
* Returns the user's locale
|
||||
*/
|
||||
export declare function getLocale(): string;
|
||||
export declare function getCanonicalLocale(): string;
|
||||
/**
|
||||
* Returns the user's language
|
||||
*/
|
||||
export declare function getLanguage(): string;
|
||||
interface TranslationOptions {
|
||||
escape?: boolean;
|
||||
}
|
||||
/**
|
||||
* Translate a string
|
||||
*
|
||||
* @param {string} app the id of the app for which to translate the string
|
||||
* @param {string} text the string to translate
|
||||
* @param {object} vars map of placeholder key to value
|
||||
* @param {number} number to replace %n with
|
||||
* @param {object} [options] options object
|
||||
* @return {string}
|
||||
*/
|
||||
export declare function translate(app: string, text: string, vars?: object, count?: number, options?: TranslationOptions): string;
|
||||
/**
|
||||
* Translate a plural string
|
||||
*
|
||||
* @param {string} app the id of the app for which to translate the string
|
||||
* @param {string} textSingular the string to translate for exactly one object
|
||||
* @param {string} textPlural the string to translate for n objects
|
||||
* @param {number} count number to determine whether to use singular or plural
|
||||
* @param {Object} vars of placeholder key to value
|
||||
* @param {object} options options object
|
||||
* @return {string}
|
||||
*/
|
||||
export declare function translatePlural(app: string, textSingular: string, textPlural: string, count: number, vars?: object, options?: TranslationOptions): string;
|
||||
/**
|
||||
* Get the first day of the week
|
||||
*
|
||||
* @return {number}
|
||||
*/
|
||||
export declare function getFirstDay(): number;
|
||||
/**
|
||||
* Get a list of day names (full names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
export declare function getDayNames(): string[];
|
||||
/**
|
||||
* Get a list of day names (short names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
export declare function getDayNamesShort(): string[];
|
||||
/**
|
||||
* Get a list of day names (minified names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
export declare function getDayNamesMin(): string[];
|
||||
/**
|
||||
* Get a list of month names (full names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
export declare function getMonthNames(): string[];
|
||||
/**
|
||||
* Get a list of month names (short names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
export declare function getMonthNamesShort(): string[];
|
||||
export {};
|
||||
174
node_modules/@nextcloud/l10n/dist/index.js
generated
vendored
Normal file
174
node_modules/@nextcloud/l10n/dist/index.js
generated
vendored
Normal file
@ -0,0 +1,174 @@
|
||||
"use strict";
|
||||
|
||||
require("core-js/modules/es.object.define-property.js");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.getCanonicalLocale = getCanonicalLocale;
|
||||
exports.getDayNames = getDayNames;
|
||||
exports.getDayNamesMin = getDayNamesMin;
|
||||
exports.getDayNamesShort = getDayNamesShort;
|
||||
exports.getFirstDay = getFirstDay;
|
||||
exports.getLanguage = getLanguage;
|
||||
exports.getLocale = getLocale;
|
||||
exports.getMonthNames = getMonthNames;
|
||||
exports.getMonthNamesShort = getMonthNamesShort;
|
||||
exports.translate = translate;
|
||||
exports.translatePlural = translatePlural;
|
||||
|
||||
require("core-js/modules/es.regexp.exec.js");
|
||||
|
||||
require("core-js/modules/es.string.replace.js");
|
||||
|
||||
/// <reference types="@nextcloud/typings" />
|
||||
|
||||
/**
|
||||
* Returns the user's locale
|
||||
*/
|
||||
function getLocale() {
|
||||
return document.documentElement.dataset.locale || 'en';
|
||||
}
|
||||
|
||||
function getCanonicalLocale() {
|
||||
return getLocale().replace(/_/g, '-');
|
||||
}
|
||||
/**
|
||||
* Returns the user's language
|
||||
*/
|
||||
|
||||
|
||||
function getLanguage() {
|
||||
return document.documentElement.lang || 'en';
|
||||
}
|
||||
|
||||
/**
|
||||
* Translate a string
|
||||
*
|
||||
* @param {string} app the id of the app for which to translate the string
|
||||
* @param {string} text the string to translate
|
||||
* @param {object} vars map of placeholder key to value
|
||||
* @param {number} number to replace %n with
|
||||
* @param {object} [options] options object
|
||||
* @return {string}
|
||||
*/
|
||||
function translate(app, text, vars, count, options) {
|
||||
if (typeof OC === 'undefined') {
|
||||
console.warn('No OC found');
|
||||
return text;
|
||||
}
|
||||
|
||||
return OC.L10N.translate(app, text, vars, count, options);
|
||||
}
|
||||
/**
|
||||
* Translate a plural string
|
||||
*
|
||||
* @param {string} app the id of the app for which to translate the string
|
||||
* @param {string} textSingular the string to translate for exactly one object
|
||||
* @param {string} textPlural the string to translate for n objects
|
||||
* @param {number} count number to determine whether to use singular or plural
|
||||
* @param {Object} vars of placeholder key to value
|
||||
* @param {object} options options object
|
||||
* @return {string}
|
||||
*/
|
||||
|
||||
|
||||
function translatePlural(app, textSingular, textPlural, count, vars, options) {
|
||||
if (typeof OC === 'undefined') {
|
||||
console.warn('No OC found');
|
||||
return textSingular;
|
||||
}
|
||||
|
||||
return OC.L10N.translatePlural(app, textSingular, textPlural, count, vars, options);
|
||||
}
|
||||
/**
|
||||
* Get the first day of the week
|
||||
*
|
||||
* @return {number}
|
||||
*/
|
||||
|
||||
|
||||
function getFirstDay() {
|
||||
if (typeof window.firstDay === 'undefined') {
|
||||
console.warn('No firstDay found');
|
||||
return 1;
|
||||
}
|
||||
|
||||
return window.firstDay;
|
||||
}
|
||||
/**
|
||||
* Get a list of day names (full names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
|
||||
|
||||
function getDayNames() {
|
||||
if (typeof window.dayNames === 'undefined') {
|
||||
console.warn('No dayNames found');
|
||||
return ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
||||
}
|
||||
|
||||
return window.dayNames;
|
||||
}
|
||||
/**
|
||||
* Get a list of day names (short names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
|
||||
|
||||
function getDayNamesShort() {
|
||||
if (typeof window.dayNamesShort === 'undefined') {
|
||||
console.warn('No dayNamesShort found');
|
||||
return ['Sun.', 'Mon.', 'Tue.', 'Wed.', 'Thu.', 'Fri.', 'Sat.'];
|
||||
}
|
||||
|
||||
return window.dayNamesShort;
|
||||
}
|
||||
/**
|
||||
* Get a list of day names (minified names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
|
||||
|
||||
function getDayNamesMin() {
|
||||
if (typeof window.dayNamesMin === 'undefined') {
|
||||
console.warn('No dayNamesMin found');
|
||||
return ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
|
||||
}
|
||||
|
||||
return window.dayNamesMin;
|
||||
}
|
||||
/**
|
||||
* Get a list of month names (full names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
|
||||
|
||||
function getMonthNames() {
|
||||
if (typeof window.monthNames === 'undefined') {
|
||||
console.warn('No monthNames found');
|
||||
return ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
||||
}
|
||||
|
||||
return window.monthNames;
|
||||
}
|
||||
/**
|
||||
* Get a list of month names (short names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
|
||||
|
||||
function getMonthNamesShort() {
|
||||
if (typeof window.monthNamesShort === 'undefined') {
|
||||
console.warn('No monthNamesShort found');
|
||||
return ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.'];
|
||||
}
|
||||
|
||||
return window.monthNamesShort;
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@nextcloud/l10n/dist/index.js.map
generated
vendored
Normal file
1
node_modules/@nextcloud/l10n/dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
82
node_modules/@nextcloud/l10n/lib/gettext.ts
generated
vendored
Normal file
82
node_modules/@nextcloud/l10n/lib/gettext.ts
generated
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
import GetText from "node-gettext"
|
||||
|
||||
import { getLanguage } from "."
|
||||
|
||||
class GettextBuilder {
|
||||
|
||||
private locale?: string
|
||||
private translations = {}
|
||||
private debug = false
|
||||
|
||||
setLanguage(language: string): GettextBuilder {
|
||||
this.locale = language
|
||||
return this
|
||||
}
|
||||
|
||||
detectLocale(): GettextBuilder {
|
||||
return this.setLanguage(getLanguage().replace('-', '_'))
|
||||
}
|
||||
|
||||
addTranslation(language: string, data: any): GettextBuilder {
|
||||
this.translations[language] = data
|
||||
return this
|
||||
}
|
||||
|
||||
enableDebugMode(): GettextBuilder {
|
||||
this.debug = true
|
||||
return this
|
||||
}
|
||||
|
||||
build(): GettextWrapper {
|
||||
return new GettextWrapper(this.locale || 'en', this.translations, this.debug)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class GettextWrapper {
|
||||
|
||||
private gt: GetText
|
||||
|
||||
constructor(locale: string, data: any, debug: boolean) {
|
||||
this.gt = new GetText({
|
||||
debug,
|
||||
sourceLocale: 'en',
|
||||
})
|
||||
|
||||
for (let key in data) {
|
||||
this.gt.addTranslations(key, 'messages', data[key])
|
||||
}
|
||||
|
||||
this.gt.setLocale(locale)
|
||||
}
|
||||
|
||||
private subtitudePlaceholders(translated: string, vars: object): string {
|
||||
return translated.replace(/{([^{}]*)}/g, (a, b) => {
|
||||
const r = vars[b]
|
||||
if (typeof r === 'string' || typeof r === 'number') {
|
||||
return r.toString()
|
||||
} else {
|
||||
return a
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
gettext(original: string, placeholders: object = {}): string {
|
||||
return this.subtitudePlaceholders(
|
||||
this.gt.gettext(original),
|
||||
placeholders
|
||||
)
|
||||
}
|
||||
|
||||
ngettext(singular: string, plural: string, count: number, placeholders: object = {}): string {
|
||||
return this.subtitudePlaceholders(
|
||||
this.gt.ngettext(singular, plural, count).replace(/%n/g, count.toString()),
|
||||
placeholders
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export function getGettextBuilder() {
|
||||
return new GettextBuilder()
|
||||
}
|
||||
152
node_modules/@nextcloud/l10n/lib/index.ts
generated
vendored
Normal file
152
node_modules/@nextcloud/l10n/lib/index.ts
generated
vendored
Normal file
@ -0,0 +1,152 @@
|
||||
/// <reference types="@nextcloud/typings" />
|
||||
|
||||
declare var OC: Nextcloud.v16.OC | Nextcloud.v17.OC | Nextcloud.v18.OC | Nextcloud.v19.OC |
|
||||
Nextcloud.v20.OC | Nextcloud.v21.OC | Nextcloud.v22.OC | Nextcloud.v23.OC |
|
||||
Nextcloud.v24.OC;
|
||||
declare var window: Nextcloud.v16.WindowWithGlobals | Nextcloud.v17.WindowWithGlobals | Nextcloud.v18.WindowWithGlobals | Nextcloud.v19.WindowWithGlobals;
|
||||
|
||||
/**
|
||||
* Returns the user's locale
|
||||
*/
|
||||
export function getLocale(): string {
|
||||
return document.documentElement.dataset.locale || 'en'
|
||||
}
|
||||
|
||||
export function getCanonicalLocale(): string {
|
||||
return getLocale().replace(/_/g, '-')
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the user's language
|
||||
*/
|
||||
export function getLanguage(): string {
|
||||
return document.documentElement.lang || 'en'
|
||||
}
|
||||
|
||||
interface TranslationOptions {
|
||||
escape?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* Translate a string
|
||||
*
|
||||
* @param {string} app the id of the app for which to translate the string
|
||||
* @param {string} text the string to translate
|
||||
* @param {object} vars map of placeholder key to value
|
||||
* @param {number} number to replace %n with
|
||||
* @param {object} [options] options object
|
||||
* @return {string}
|
||||
*/
|
||||
export function translate(app: string, text: string, vars?: object, count?: number, options?: TranslationOptions): string {
|
||||
if (typeof OC === 'undefined') {
|
||||
console.warn('No OC found')
|
||||
return text
|
||||
}
|
||||
|
||||
return OC.L10N.translate(app, text, vars, count, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Translate a plural string
|
||||
*
|
||||
* @param {string} app the id of the app for which to translate the string
|
||||
* @param {string} textSingular the string to translate for exactly one object
|
||||
* @param {string} textPlural the string to translate for n objects
|
||||
* @param {number} count number to determine whether to use singular or plural
|
||||
* @param {Object} vars of placeholder key to value
|
||||
* @param {object} options options object
|
||||
* @return {string}
|
||||
*/
|
||||
|
||||
export function translatePlural(app: string, textSingular: string, textPlural: string, count: number, vars?: object, options?: TranslationOptions): string {
|
||||
if (typeof OC === 'undefined') {
|
||||
console.warn('No OC found')
|
||||
return textSingular
|
||||
}
|
||||
|
||||
return OC.L10N.translatePlural(app, textSingular, textPlural, count, vars, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the first day of the week
|
||||
*
|
||||
* @return {number}
|
||||
*/
|
||||
export function getFirstDay(): number {
|
||||
if (typeof window.firstDay === 'undefined') {
|
||||
console.warn('No firstDay found')
|
||||
return 1
|
||||
}
|
||||
|
||||
return window.firstDay
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of day names (full names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
export function getDayNames(): string[] {
|
||||
if (typeof window.dayNames === 'undefined') {
|
||||
console.warn('No dayNames found')
|
||||
return ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
|
||||
}
|
||||
|
||||
return window.dayNames
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of day names (short names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
export function getDayNamesShort(): string[] {
|
||||
if (typeof window.dayNamesShort === 'undefined') {
|
||||
console.warn('No dayNamesShort found')
|
||||
return ['Sun.', 'Mon.', 'Tue.', 'Wed.', 'Thu.', 'Fri.', 'Sat.']
|
||||
}
|
||||
|
||||
return window.dayNamesShort
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of day names (minified names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
export function getDayNamesMin(): string[] {
|
||||
if (typeof window.dayNamesMin === 'undefined') {
|
||||
console.warn('No dayNamesMin found')
|
||||
return ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']
|
||||
}
|
||||
|
||||
return window.dayNamesMin
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of month names (full names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
export function getMonthNames(): string[] {
|
||||
if (typeof window.monthNames === 'undefined') {
|
||||
console.warn('No monthNames found')
|
||||
return ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
|
||||
}
|
||||
|
||||
return window.monthNames
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of month names (short names)
|
||||
*
|
||||
* @return {string[]}
|
||||
*/
|
||||
export function getMonthNamesShort(): string[] {
|
||||
if (typeof window.monthNamesShort === 'undefined') {
|
||||
console.warn('No monthNamesShort found')
|
||||
return ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.']
|
||||
}
|
||||
|
||||
return window.monthNamesShort
|
||||
}
|
||||
47
node_modules/@nextcloud/l10n/package.json
generated
vendored
Normal file
47
node_modules/@nextcloud/l10n/package.json
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "@nextcloud/l10n",
|
||||
"version": "1.6.0",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "babel ./lib --out-dir dist --extensions '.ts,.tsx' --source-maps && tsc --emitDeclarationOnly",
|
||||
"build:doc": "typedoc --excludeNotExported --mode file --out dist/doc lib && touch dist/doc/.nojekyll",
|
||||
"check-types": "tsc",
|
||||
"dev": "babel ./lib --out-dir dist --extensions '.ts,.tsx' --watch",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watchAll"
|
||||
},
|
||||
"keywords": [
|
||||
"nextcloud"
|
||||
],
|
||||
"homepage": "https://github.com/nextcloud/nextcloud-l10n#readme",
|
||||
"author": "Christoph Wurst",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nextcloud/nextcloud-l10n"
|
||||
},
|
||||
"dependencies": {
|
||||
"core-js": "^3.6.4",
|
||||
"node-gettext": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.8.4",
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/preset-env": "^7.9.5",
|
||||
"@babel/preset-typescript": "^7.9.0",
|
||||
"@nextcloud/browserslist-config": "^2.2.0",
|
||||
"@nextcloud/typings": "^1.0.0",
|
||||
"@types/node-gettext": "^3.0",
|
||||
"babel-jest": "^27.2.1",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"gettext-parser": "^4.0.3",
|
||||
"jest": "^27.2.1",
|
||||
"typedoc": "^0.22.4",
|
||||
"typescript": "^4.0.2"
|
||||
},
|
||||
"browserslist": [
|
||||
"extends @nextcloud/browserslist-config"
|
||||
]
|
||||
}
|
||||
158
node_modules/@nextcloud/l10n/test/gettext.test.js
generated
vendored
Normal file
158
node_modules/@nextcloud/l10n/test/gettext.test.js
generated
vendored
Normal file
@ -0,0 +1,158 @@
|
||||
import { po } from 'gettext-parser'
|
||||
|
||||
import { getGettextBuilder } from '../lib/gettext'
|
||||
|
||||
describe('gettext', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
jest.spyOn(console, 'warn')
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
console.warn.mockRestore()
|
||||
})
|
||||
|
||||
it('falls back to the original string', () => {
|
||||
const gt = getGettextBuilder()
|
||||
.setLanguage('de')
|
||||
.build()
|
||||
|
||||
const translation = gt.gettext('Settings')
|
||||
|
||||
expect(translation).toEqual('Settings')
|
||||
})
|
||||
|
||||
it('does not log in production', () => {
|
||||
const gt = getGettextBuilder()
|
||||
.setLanguage('de')
|
||||
.build()
|
||||
|
||||
gt.gettext('Settings')
|
||||
|
||||
expect(console.warn).not.toHaveBeenCalled()
|
||||
})
|
||||
|
||||
it('has optional debug logs', () => {
|
||||
const gt = getGettextBuilder()
|
||||
.setLanguage('de')
|
||||
.enableDebugMode()
|
||||
.build()
|
||||
|
||||
gt.gettext('Settings')
|
||||
|
||||
expect(console.warn).toHaveBeenCalled()
|
||||
})
|
||||
|
||||
it('falls back to the original singular string', () => {
|
||||
const gt = getGettextBuilder()
|
||||
.setLanguage('en')
|
||||
.build()
|
||||
|
||||
const translated = gt.ngettext('%n Setting', '%n Settings', 1)
|
||||
|
||||
expect(translated).toEqual('1 Setting')
|
||||
})
|
||||
|
||||
it('falls back to the original plural string', () => {
|
||||
const gt = getGettextBuilder()
|
||||
.setLanguage('en')
|
||||
.build()
|
||||
|
||||
const translated = gt.ngettext('%n Setting', '%n Settings', 2)
|
||||
|
||||
expect(translated).toEqual('2 Settings')
|
||||
})
|
||||
|
||||
it('detects en as default locale/language', () => {
|
||||
const detected = getGettextBuilder()
|
||||
.detectLocale()
|
||||
.build()
|
||||
|
||||
const manual = getGettextBuilder()
|
||||
.setLanguage('en')
|
||||
.build()
|
||||
|
||||
expect(detected).toEqual(manual)
|
||||
})
|
||||
|
||||
it('used nextcloud-style placeholder replacement', () => {
|
||||
const gt = getGettextBuilder()
|
||||
.setLanguage('de')
|
||||
.build()
|
||||
|
||||
const translation = gt.gettext('I wish Nextcloud were written in {lang}', {
|
||||
lang: 'Rust'
|
||||
})
|
||||
|
||||
expect(translation).toEqual('I wish Nextcloud were written in Rust')
|
||||
})
|
||||
|
||||
it('used nextcloud-style placeholder replacement for plurals', () => {
|
||||
const gt = getGettextBuilder()
|
||||
.setLanguage('de')
|
||||
.build()
|
||||
|
||||
const translation = gt.ngettext('%n {what} Setting', '%n {what} Settings', 2, {
|
||||
what: 'test',
|
||||
})
|
||||
|
||||
expect(translation).toEqual('2 test Settings')
|
||||
})
|
||||
|
||||
it('translates', () => {
|
||||
const pot = `msgid ""
|
||||
msgstr ""
|
||||
"Last-Translator: Translator, 2020\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Language: sv\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
msgid "abc"
|
||||
msgstr "def"
|
||||
`
|
||||
const gt = getGettextBuilder()
|
||||
.setLanguage('sv')
|
||||
.addTranslation('sv', po.parse(pot))
|
||||
.build()
|
||||
|
||||
const translation = gt.gettext('abc')
|
||||
|
||||
expect(translation).toEqual('def')
|
||||
})
|
||||
|
||||
it('translates plurals', () => {
|
||||
// From https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html
|
||||
const pot = `msgid ""
|
||||
msgstr ""
|
||||
"Last-Translator: Translator, 2020\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Language: sv\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
msgid "One file removed"
|
||||
msgid_plural "%d files removed"
|
||||
msgstr[0] "%n slika uklonjenih"
|
||||
msgstr[1] "%n slika uklonjenih"
|
||||
msgstr[2] "%n slika uklonjenih"
|
||||
`
|
||||
const gt = getGettextBuilder()
|
||||
.setLanguage('sv')
|
||||
.addTranslation('sv', po.parse(pot))
|
||||
.build()
|
||||
|
||||
const translation = gt.ngettext('One file removed', '%n files removed', 2)
|
||||
|
||||
expect(translation).toEqual('2 slika uklonjenih')
|
||||
})
|
||||
|
||||
it('does not escape special chars', () => {
|
||||
const gt = getGettextBuilder()
|
||||
.setLanguage('de')
|
||||
.build()
|
||||
|
||||
const translation = gt.gettext('test & stuff')
|
||||
|
||||
expect(translation).toEqual('test & stuff')
|
||||
})
|
||||
|
||||
})
|
||||
61
node_modules/@nextcloud/l10n/test/index.test.js
generated
vendored
Normal file
61
node_modules/@nextcloud/l10n/test/index.test.js
generated
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
import {
|
||||
getCanonicalLocale,
|
||||
getFirstDay,
|
||||
getDayNames,
|
||||
getDayNamesShort,
|
||||
getDayNamesMin,
|
||||
getMonthNames,
|
||||
getMonthNamesShort
|
||||
} from '../lib/index'
|
||||
|
||||
describe('getCanonicalLocale', () => {
|
||||
let locale
|
||||
|
||||
beforeEach(() => {
|
||||
locale = undefined
|
||||
window.OC = {
|
||||
getLocale: () => locale
|
||||
}
|
||||
})
|
||||
afterEach(() => {
|
||||
delete window.OC
|
||||
})
|
||||
|
||||
it('Returns primary locales as is', () => {
|
||||
locale = 'de'
|
||||
expect(getCanonicalLocale()).toEqual('de')
|
||||
locale = 'zu'
|
||||
expect(getCanonicalLocale()).toEqual('zu')
|
||||
})
|
||||
|
||||
it('Returns extended locales with hyphens', () => {
|
||||
locale = 'az_Cyrl_AZ'
|
||||
expect(getCanonicalLocale()).toEqual('az-Cyrl-AZ')
|
||||
locale = 'de_DE'
|
||||
expect(getCanonicalLocale()).toEqual('de-DE')
|
||||
})
|
||||
})
|
||||
|
||||
test('getFirstDay', () => {
|
||||
expect(getFirstDay()).toBe(1)
|
||||
})
|
||||
|
||||
test('getDayNames', () => {
|
||||
expect(getDayNames().length).toBe(7)
|
||||
})
|
||||
|
||||
test('getDayNamesShort', () => {
|
||||
expect(getDayNamesShort().length).toBe(7)
|
||||
})
|
||||
|
||||
test('getDayNamesMin', () => {
|
||||
expect(getDayNamesMin().length).toBe(7)
|
||||
})
|
||||
|
||||
test('getMonthNames', () => {
|
||||
expect(getMonthNames().length).toBe(12)
|
||||
})
|
||||
|
||||
test('getMonthNamesShort', () => {
|
||||
expect(getMonthNamesShort().length).toBe(12)
|
||||
})
|
||||
15
node_modules/@nextcloud/l10n/tsconfig.json
generated
vendored
Normal file
15
node_modules/@nextcloud/l10n/tsconfig.json
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"esModuleInterop": true,
|
||||
"declaration": true,
|
||||
"outDir": "./dist",
|
||||
"strict": true,
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": false,
|
||||
}
|
||||
}
|
||||
19
node_modules/core-js/LICENSE
generated
vendored
Normal file
19
node_modules/core-js/LICENSE
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
Copyright (c) 2014-2025 Denis Pushkarev
|
||||
|
||||
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.
|
||||
95
node_modules/core-js/README.md
generated
vendored
Normal file
95
node_modules/core-js/README.md
generated
vendored
Normal file
@ -0,0 +1,95 @@
|
||||

|
||||
|
||||
<div align="center">
|
||||
|
||||
[](https://opencollective.com/core-js) [](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [](https://www.npmjs.com/package/core-js) [](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18)
|
||||
|
||||
</div>
|
||||
|
||||
**I highly recommend reading this: [So, what's next?](https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md)**
|
||||
---
|
||||
|
||||
> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2023](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
|
||||
|
||||
## Raising funds
|
||||
|
||||
`core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer if you are interested in `core-js`: [**Open Collective**](https://opencollective.com/core-js), [**Patreon**](https://patreon.com/zloirock), [**Boosty**](https://boosty.to/zloirock), **Bitcoin ( bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz )**, [**Alipay**](https://user-images.githubusercontent.com/2213682/219464783-c17ad329-17ce-4795-82a7-f609493345ed.png).
|
||||
|
||||
---
|
||||
|
||||
<a href="https://opencollective.com/core-js/sponsor/0/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/0/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/1/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/1/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/2/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/2/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/3/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/3/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/4/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/4/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/5/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/5/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/6/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/6/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/7/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/7/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/8/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/8/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/9/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/9/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/10/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/10/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/11/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/11/avatar.svg"></a>
|
||||
|
||||
---
|
||||
|
||||
<a href="https://opencollective.com/core-js#backers" target="_blank"><img src="https://opencollective.com/core-js/backers.svg?width=890"></a>
|
||||
|
||||
---
|
||||
|
||||
[*Example of usage*](https://tinyurl.com/2mknex43):
|
||||
```js
|
||||
import 'core-js/actual';
|
||||
|
||||
Promise.resolve(42).then(it => console.log(it)); // => 42
|
||||
|
||||
Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
||||
|
||||
[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]
|
||||
|
||||
(function * (i) { while (true) yield i++; })(1)
|
||||
.drop(1).take(5)
|
||||
.filter(it => it % 2)
|
||||
.map(it => it ** 2)
|
||||
.toArray(); // => [9, 25]
|
||||
|
||||
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
||||
```
|
||||
|
||||
*You can load only required features*:
|
||||
```js
|
||||
import 'core-js/actual/promise';
|
||||
import 'core-js/actual/set';
|
||||
import 'core-js/actual/iterator';
|
||||
import 'core-js/actual/array/from';
|
||||
import 'core-js/actual/array/flat-map';
|
||||
import 'core-js/actual/structured-clone';
|
||||
|
||||
Promise.resolve(42).then(it => console.log(it)); // => 42
|
||||
|
||||
Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
||||
|
||||
[1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]
|
||||
|
||||
(function * (i) { while (true) yield i++; })(1)
|
||||
.drop(1).take(5)
|
||||
.filter(it => it % 2)
|
||||
.map(it => it ** 2)
|
||||
.toArray(); // => [9, 25]
|
||||
|
||||
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
||||
```
|
||||
|
||||
*Or use it without global namespace pollution*:
|
||||
```js
|
||||
import Promise from 'core-js-pure/actual/promise';
|
||||
import Set from 'core-js-pure/actual/set';
|
||||
import Iterator from 'core-js-pure/actual/iterator';
|
||||
import from from 'core-js-pure/actual/array/from';
|
||||
import flatMap from 'core-js-pure/actual/array/flat-map';
|
||||
import structuredClone from 'core-js-pure/actual/structured-clone';
|
||||
|
||||
Promise.resolve(42).then(it => console.log(it)); // => 42
|
||||
|
||||
from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
|
||||
|
||||
flatMap([1, 2], it => [it, it]); // => [1, 1, 2, 2]
|
||||
|
||||
Iterator.from(function * (i) { while (true) yield i++; }(1))
|
||||
.drop(1).take(5)
|
||||
.filter(it => it % 2)
|
||||
.map(it => it ** 2)
|
||||
.toArray(); // => [9, 25]
|
||||
|
||||
structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
|
||||
```
|
||||
|
||||
**It's a global version (first 2 examples), for more info see [`core-js` documentation](https://github.com/zloirock/core-js/blob/master/README.md).**
|
||||
1
node_modules/core-js/actual/README.md
generated
vendored
Normal file
1
node_modules/core-js/actual/README.md
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
This folder contains entry points for all `core-js` features with dependencies. It's the recommended way for usage only required features.
|
||||
4
node_modules/core-js/actual/aggregate-error.js
generated
vendored
Normal file
4
node_modules/core-js/actual/aggregate-error.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../stable/aggregate-error');
|
||||
|
||||
module.exports = parent;
|
||||
7
node_modules/core-js/actual/array-buffer/constructor.js
generated
vendored
Normal file
7
node_modules/core-js/actual/array-buffer/constructor.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/constructor');
|
||||
require('../../modules/esnext.array-buffer.detached');
|
||||
require('../../modules/esnext.array-buffer.transfer');
|
||||
require('../../modules/esnext.array-buffer.transfer-to-fixed-length');
|
||||
|
||||
module.exports = parent;
|
||||
5
node_modules/core-js/actual/array-buffer/detached.js
generated
vendored
Normal file
5
node_modules/core-js/actual/array-buffer/detached.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/detached');
|
||||
require('../../modules/esnext.array-buffer.detached');
|
||||
|
||||
module.exports = parent;
|
||||
7
node_modules/core-js/actual/array-buffer/index.js
generated
vendored
Normal file
7
node_modules/core-js/actual/array-buffer/index.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer');
|
||||
require('../../modules/esnext.array-buffer.detached');
|
||||
require('../../modules/esnext.array-buffer.transfer');
|
||||
require('../../modules/esnext.array-buffer.transfer-to-fixed-length');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array-buffer/is-view.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array-buffer/is-view.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/is-view');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array-buffer/slice.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array-buffer/slice.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/slice');
|
||||
|
||||
module.exports = parent;
|
||||
5
node_modules/core-js/actual/array-buffer/transfer-to-fixed-length.js
generated
vendored
Normal file
5
node_modules/core-js/actual/array-buffer/transfer-to-fixed-length.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/transfer-to-fixed-length');
|
||||
require('../../modules/esnext.array-buffer.transfer-to-fixed-length');
|
||||
|
||||
module.exports = parent;
|
||||
5
node_modules/core-js/actual/array-buffer/transfer.js
generated
vendored
Normal file
5
node_modules/core-js/actual/array-buffer/transfer.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array-buffer/transfer');
|
||||
require('../../modules/esnext.array-buffer.transfer');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/at.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/at.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/at');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/concat.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/concat.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/concat');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/copy-within.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/copy-within.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/copy-within');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/entries.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/entries.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/entries');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/every.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/every.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/every');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/fill.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/fill.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/fill');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/filter.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/filter.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/filter');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/find-index.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/find-index.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/find-index');
|
||||
|
||||
module.exports = parent;
|
||||
5
node_modules/core-js/actual/array/find-last-index.js
generated
vendored
Normal file
5
node_modules/core-js/actual/array/find-last-index.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
require('../../modules/esnext.array.find-last-index');
|
||||
var parent = require('../../stable/array/find-last-index');
|
||||
|
||||
module.exports = parent;
|
||||
5
node_modules/core-js/actual/array/find-last.js
generated
vendored
Normal file
5
node_modules/core-js/actual/array/find-last.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
require('../../modules/esnext.array.find-last');
|
||||
var parent = require('../../stable/array/find-last');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/find.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/find.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/find');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/flat-map.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/flat-map.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/flat-map');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/flat.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/flat.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/flat');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/for-each.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/for-each.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/for-each');
|
||||
|
||||
module.exports = parent;
|
||||
9
node_modules/core-js/actual/array/from-async.js
generated
vendored
Normal file
9
node_modules/core-js/actual/array/from-async.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
require('../../modules/es.array.iterator');
|
||||
require('../../modules/es.object.to-string');
|
||||
require('../../modules/es.promise');
|
||||
require('../../modules/es.string.iterator');
|
||||
require('../../modules/esnext.array.from-async');
|
||||
var path = require('../../internals/path');
|
||||
|
||||
module.exports = path.Array.fromAsync;
|
||||
4
node_modules/core-js/actual/array/from.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/from.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/from');
|
||||
|
||||
module.exports = parent;
|
||||
7
node_modules/core-js/actual/array/group-by-to-map.js
generated
vendored
Normal file
7
node_modules/core-js/actual/array/group-by-to-map.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
require('../../modules/es.map');
|
||||
require('../../modules/es.object.to-string');
|
||||
require('../../modules/esnext.array.group-by-to-map');
|
||||
var entryUnbind = require('../../internals/entry-unbind');
|
||||
|
||||
module.exports = entryUnbind('Array', 'groupByToMap');
|
||||
5
node_modules/core-js/actual/array/group-by.js
generated
vendored
Normal file
5
node_modules/core-js/actual/array/group-by.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
require('../../modules/esnext.array.group-by');
|
||||
var entryUnbind = require('../../internals/entry-unbind');
|
||||
|
||||
module.exports = entryUnbind('Array', 'groupBy');
|
||||
7
node_modules/core-js/actual/array/group-to-map.js
generated
vendored
Normal file
7
node_modules/core-js/actual/array/group-to-map.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
require('../../modules/es.map');
|
||||
require('../../modules/es.object.to-string');
|
||||
require('../../modules/esnext.array.group-to-map');
|
||||
var entryUnbind = require('../../internals/entry-unbind');
|
||||
|
||||
module.exports = entryUnbind('Array', 'groupToMap');
|
||||
5
node_modules/core-js/actual/array/group.js
generated
vendored
Normal file
5
node_modules/core-js/actual/array/group.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
require('../../modules/esnext.array.group');
|
||||
var entryUnbind = require('../../internals/entry-unbind');
|
||||
|
||||
module.exports = entryUnbind('Array', 'group');
|
||||
4
node_modules/core-js/actual/array/includes.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/includes.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/includes');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/index-of.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/index-of.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/index-of');
|
||||
|
||||
module.exports = parent;
|
||||
18
node_modules/core-js/actual/array/index.js
generated
vendored
Normal file
18
node_modules/core-js/actual/array/index.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array');
|
||||
require('../../modules/es.promise');
|
||||
require('../../modules/es.object.to-string');
|
||||
require('../../modules/esnext.array.from-async');
|
||||
require('../../modules/esnext.array.group');
|
||||
require('../../modules/esnext.array.group-to-map');
|
||||
// TODO: Remove from `core-js@4`
|
||||
require('../../modules/esnext.array.find-last');
|
||||
require('../../modules/esnext.array.find-last-index');
|
||||
require('../../modules/esnext.array.group-by');
|
||||
require('../../modules/esnext.array.group-by-to-map');
|
||||
require('../../modules/esnext.array.to-reversed');
|
||||
require('../../modules/esnext.array.to-sorted');
|
||||
require('../../modules/esnext.array.to-spliced');
|
||||
require('../../modules/esnext.array.with');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/is-array.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/is-array.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/is-array');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/iterator.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/iterator.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/iterator');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/join.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/join.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/join');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/keys.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/keys.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/keys');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/last-index-of.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/last-index-of.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/last-index-of');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/map.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/map.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/map');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/of.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/of.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/of');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/push.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/push.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/push');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/reduce-right.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/reduce-right.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/reduce-right');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/reduce.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/reduce.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/reduce');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/reverse.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/reverse.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/reverse');
|
||||
|
||||
module.exports = parent;
|
||||
4
node_modules/core-js/actual/array/slice.js
generated
vendored
Normal file
4
node_modules/core-js/actual/array/slice.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
var parent = require('../../stable/array/slice');
|
||||
|
||||
module.exports = parent;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user