Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
201
Frontend-Learner/node_modules/fuse.js/LICENSE
generated
vendored
Normal file
201
Frontend-Learner/node_modules/fuse.js/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,201 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2017 Kirollos Risk
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
64
Frontend-Learner/node_modules/fuse.js/README.md
generated
vendored
Normal file
64
Frontend-Learner/node_modules/fuse.js/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# Fuse.js
|
||||
|
||||

|
||||
[](https://www.npmjs.com/package/fuse.js)
|
||||
[](https://npmcharts.com/compare/fuse.js?minimal=tru)
|
||||
[](https://github.com/prettier/prettier)
|
||||
[](https://github.com/krisk/Fuse/graphs/contributors)
|
||||

|
||||
|
||||
## Supporting Fuse.js
|
||||
|
||||
Through contributions, donations, and sponsorship, you allow Fuse.js to thrive. Also, you will be recognized as a beacon of support to open-source developers.
|
||||
|
||||
- [Become a backer or sponsor on **GitHub**.](https://github.com/sponsors/krisk)
|
||||
- [Become a backer or sponsor on **Patreon**.](https://patreon.com/fusejs)
|
||||
- [One-time donation via **PayPal**.](https://www.paypal.me/kirorisk)
|
||||
|
||||
---
|
||||
|
||||
<h3 align="center">Sponsors</h3>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" valign="middle">
|
||||
<a href="https://www.worksome.com" target="_blank">
|
||||
<img width="222px" src="https://raw.githubusercontent.com/krisk/Fuse/7a0d77d85ac90063575613b6a738f418b624357f/docs/.vuepress/public/assets/img/sponsors/worksome.svg">
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" valign="middle">
|
||||
<a href="https://www.bairesdev.com/sponsoring-open-source-projects/" target="_blank">
|
||||
<img width="222px" src="https://github.com/krisk/Fuse/blob/gh-pages/assets/img/sponsors/bairesdev.png?raw=true">
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" valign="middle">
|
||||
<a href="https://litslink.com/" target="_blank">
|
||||
<img width="222px" src="https://github.com/krisk/Fuse/blob/gh-pages/assets/img/sponsors/litslink.svg?raw=true">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</body>
|
||||
</table>
|
||||
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
||||
Fuse.js is a lightweight fuzzy-search, in JavaScript, with zero dependencies.
|
||||
|
||||
### Browser Compatibility
|
||||
|
||||
Fuse.js supports all browsers that are [ES5-compliant](http://kangax.github.io/compat-table/es5/) (IE8 and below are not supported).
|
||||
|
||||
## Documentation
|
||||
|
||||
To check out a [live demo](https://fusejs.io/demo.html) and docs, visit [fusejs.io](https://fusejs.io).
|
||||
|
||||
## Develop
|
||||
|
||||
Here's a separate document for [developers](https://github.com/krisk/Fuse/blob/master/DEVELOPERS.md).
|
||||
|
||||
## Contribute
|
||||
|
||||
We've set up a separate document for our
|
||||
[contribution guidelines](https://github.com/krisk/Fuse/blob/master/CONTRIBUTING.md).
|
||||
1342
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.cjs
generated
vendored
Normal file
1342
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.cjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1348
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.js
generated
vendored
Normal file
1348
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.min.cjs
generated
vendored
Normal file
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.min.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.min.js
generated
vendored
Normal file
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.min.mjs
generated
vendored
Normal file
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.min.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1268
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.mjs
generated
vendored
Normal file
1268
Frontend-Learner/node_modules/fuse.js/dist/fuse.basic.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
2027
Frontend-Learner/node_modules/fuse.js/dist/fuse.cjs
generated
vendored
Normal file
2027
Frontend-Learner/node_modules/fuse.js/dist/fuse.cjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
373
Frontend-Learner/node_modules/fuse.js/dist/fuse.d.ts
generated
vendored
Normal file
373
Frontend-Learner/node_modules/fuse.js/dist/fuse.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,373 @@
|
|||
// Type definitions for Fuse.js v7.1.0
|
||||
// TypeScript v4.9.5
|
||||
declare class Fuse<T> {
|
||||
public constructor(
|
||||
list: ReadonlyArray<T>,
|
||||
options?: IFuseOptions<T>,
|
||||
index?: FuseIndex<T>
|
||||
)
|
||||
/**
|
||||
* Search function for the Fuse instance.
|
||||
*
|
||||
* ```typescript
|
||||
* const list: MyType[] = [myType1, myType2, etc...]
|
||||
|
||||
* const options: Fuse.IFuseOptions<MyType> = {
|
||||
* keys: ['key1', 'key2']
|
||||
* }
|
||||
*
|
||||
* const myFuse = new Fuse(list, options)
|
||||
* let result = myFuse.search('pattern')
|
||||
* ```
|
||||
*
|
||||
* @param pattern The pattern to search
|
||||
* @param options `Fuse.FuseSearchOptions`
|
||||
* @returns An array of search results
|
||||
*/
|
||||
public search<R = T>(
|
||||
pattern: string | Expression,
|
||||
options?: FuseSearchOptions
|
||||
): FuseResult<R>[]
|
||||
|
||||
public setCollection(docs: ReadonlyArray<T>, index?: FuseIndex<T>): void
|
||||
|
||||
/**
|
||||
* Adds a doc to the end the list.
|
||||
*/
|
||||
public add(doc: T): void
|
||||
|
||||
/**
|
||||
* Removes all documents from the list which the predicate returns truthy for,
|
||||
* and returns an array of the removed docs.
|
||||
* The predicate is invoked with two arguments: (doc, index).
|
||||
*/
|
||||
public remove(predicate: (doc: T, idx: number) => boolean): T[]
|
||||
|
||||
/**
|
||||
* Removes the doc at the specified index.
|
||||
*/
|
||||
public removeAt(idx: number): void
|
||||
|
||||
/**
|
||||
* Returns the generated Fuse index
|
||||
*/
|
||||
public getIndex(): FuseIndex<T>
|
||||
|
||||
/**
|
||||
* Return the current version.
|
||||
*/
|
||||
public static version: string
|
||||
|
||||
/**
|
||||
* Use this method to pre-generate the index from the list, and pass it
|
||||
* directly into the Fuse instance.
|
||||
*
|
||||
* _Note that Fuse will automatically index the table if one isn't provided
|
||||
* during instantiation._
|
||||
*
|
||||
* ```typescript
|
||||
* const list: MyType[] = [myType1, myType2, etc...]
|
||||
*
|
||||
* const index = Fuse.createIndex<MyType>(
|
||||
* keys: ['key1', 'key2']
|
||||
* list: list
|
||||
* )
|
||||
*
|
||||
* const options: Fuse.IFuseOptions<MyType> = {
|
||||
* keys: ['key1', 'key2']
|
||||
* }
|
||||
*
|
||||
* const myFuse = new Fuse(list, options, index)
|
||||
* ```
|
||||
* @param keys The keys to index
|
||||
* @param list The list from which to create an index
|
||||
* @param options?
|
||||
* @returns An indexed list
|
||||
*/
|
||||
public static createIndex<U>(
|
||||
keys: Array<FuseOptionKey<U>>,
|
||||
list: ReadonlyArray<U>,
|
||||
options?: FuseIndexOptions<U>
|
||||
): FuseIndex<U>
|
||||
|
||||
public static parseIndex<U>(
|
||||
index: {
|
||||
keys: ReadonlyArray<string>
|
||||
records: FuseIndexRecords
|
||||
},
|
||||
options?: FuseIndexOptions<U>
|
||||
): FuseIndex<U>
|
||||
|
||||
public static config: Required<IFuseOptions<any>>
|
||||
}
|
||||
|
||||
declare class FuseIndex<T> {
|
||||
public constructor(options?: FuseIndexOptions<T>)
|
||||
public setSources(docs: ReadonlyArray<T>): void
|
||||
public setKeys(keys: ReadonlyArray<string>): void
|
||||
public setIndexRecords(records: FuseIndexRecords): void
|
||||
public create(): void
|
||||
public add(doc: T): void
|
||||
public toJSON(): {
|
||||
keys: ReadonlyArray<string>
|
||||
records: FuseIndexRecords
|
||||
}
|
||||
}
|
||||
|
||||
type FuseGetFunction<T> = (
|
||||
obj: T,
|
||||
path: string | string[]
|
||||
) => ReadonlyArray<string> | string
|
||||
|
||||
type FuseIndexOptions<T> = {
|
||||
getFn: FuseGetFunction<T>
|
||||
}
|
||||
|
||||
/**
|
||||
* @example
|
||||
* ```ts
|
||||
* {
|
||||
* title: { '$': "Old Man's War" },
|
||||
* 'author.firstName': { '$': 'Codenar' }
|
||||
* }
|
||||
* ```
|
||||
* @example
|
||||
* ```ts
|
||||
* {
|
||||
* tags: [
|
||||
* { $: 'nonfiction', idx: 0 },
|
||||
* { $: 'web development', idx: 1 },
|
||||
* ]
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
type FuseSortFunctionItem = {
|
||||
[key: string]: { $: string } | { $: string; idx: number }[]
|
||||
}
|
||||
|
||||
/**
|
||||
* @example
|
||||
* ```ts
|
||||
* {
|
||||
* score: 0.001,
|
||||
* key: 'author.firstName',
|
||||
* value: 'Codenar',
|
||||
* indices: [ [ 0, 3 ] ]
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
type FuseSortFunctionMatch = {
|
||||
score: number
|
||||
key: string
|
||||
value: string
|
||||
indices: ReadonlyArray<number>[]
|
||||
}
|
||||
|
||||
/**
|
||||
* @example
|
||||
* ```ts
|
||||
* {
|
||||
* score: 0,
|
||||
* key: 'tags',
|
||||
* value: 'nonfiction',
|
||||
* idx: 1,
|
||||
* indices: [ [ 0, 9 ] ]
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
type FuseSortFunctionMatchList = FuseSortFunctionMatch & {
|
||||
idx: number
|
||||
}
|
||||
|
||||
type FuseSortFunctionArg = {
|
||||
idx: number
|
||||
item: FuseSortFunctionItem
|
||||
score: number
|
||||
matches?: (FuseSortFunctionMatch | FuseSortFunctionMatchList)[]
|
||||
}
|
||||
|
||||
type FuseSortFunction = (
|
||||
a: FuseSortFunctionArg,
|
||||
b: FuseSortFunctionArg
|
||||
) => number
|
||||
|
||||
/**
|
||||
* @example
|
||||
* ```ts
|
||||
* title: {
|
||||
* '$': "Old Man's War",
|
||||
* 'n': 0.5773502691896258
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
type RecordEntryObject = {
|
||||
/** The text value */
|
||||
v: string
|
||||
/** The field-length norm */
|
||||
n: number
|
||||
}
|
||||
|
||||
/**
|
||||
* @example
|
||||
* ```ts
|
||||
* 'author.tags.name': [{
|
||||
* 'v': 'pizza lover',
|
||||
* 'i': 2,
|
||||
* 'n: 0.7071067811865475
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
type RecordEntryArrayItem = ReadonlyArray<
|
||||
RecordEntryObject & { i: number }
|
||||
>
|
||||
|
||||
// TODO: this makes it difficult to infer the type. Need to think more about this
|
||||
type RecordEntry = {
|
||||
[key: string]: RecordEntryObject | RecordEntryArrayItem
|
||||
}
|
||||
|
||||
/**
|
||||
* @example
|
||||
* ```ts
|
||||
* {
|
||||
* i: 0,
|
||||
* '$': {
|
||||
* '0': { v: "Old Man's War", n: 0.5773502691896258 },
|
||||
* '1': { v: 'Codenar', n: 1 },
|
||||
* '2': [
|
||||
* { v: 'pizza lover', i: 2, n: 0.7071067811865475 },
|
||||
* { v: 'helo wold', i: 1, n: 0.7071067811865475 },
|
||||
* { v: 'hello world', i: 0, n: 0.7071067811865475 }
|
||||
* ]
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
type FuseIndexObjectRecord = {
|
||||
/** The index of the record in the source list */
|
||||
i: number
|
||||
$: RecordEntry
|
||||
}
|
||||
|
||||
/**
|
||||
* @example
|
||||
* ```ts
|
||||
* {
|
||||
* keys: null,
|
||||
* list: [
|
||||
* { v: 'one', i: 0, n: 1 },
|
||||
* { v: 'two', i: 1, n: 1 },
|
||||
* { v: 'three', i: 2, n: 1 }
|
||||
* ]
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
type FuseIndexStringRecord = {
|
||||
/** The index of the record in the source list */
|
||||
i: number
|
||||
/** The text value */
|
||||
v: string
|
||||
/** The field-length norm */
|
||||
n: number
|
||||
}
|
||||
|
||||
type FuseIndexRecords =
|
||||
| ReadonlyArray<FuseIndexObjectRecord>
|
||||
| ReadonlyArray<FuseIndexStringRecord>
|
||||
|
||||
/**
|
||||
* @example
|
||||
* ```ts
|
||||
* {
|
||||
* name: 'title',
|
||||
* weight: 0.7
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
type FuseOptionKeyObject<T> = {
|
||||
name: string | string[]
|
||||
weight?: number
|
||||
getFn?: (obj: T) => ReadonlyArray<string> | string
|
||||
}
|
||||
|
||||
type FuseOptionKey<T> = FuseOptionKeyObject<T> | string | string[]
|
||||
|
||||
interface IFuseOptions<T> {
|
||||
/** Indicates whether comparisons should be case sensitive. */
|
||||
isCaseSensitive?: boolean
|
||||
/** Indicates whether comparisons should ignore diacritics (accents). */
|
||||
ignoreDiacritics?: boolean
|
||||
/** Determines how close the match must be to the fuzzy location (specified by `location`). An exact letter match which is `distance` characters away from the fuzzy location would score as a complete mismatch. A `distance` of `0` requires the match be at the exact `location` specified. A distance of `1000` would require a perfect match to be within `800` characters of the `location` to be found using a `threshold` of `0.8`. */
|
||||
distance?: number
|
||||
/** When true, the matching function will continue to the end of a search pattern even if a perfect match has already been located in the string. */
|
||||
findAllMatches?: boolean
|
||||
/** The function to use to retrieve an object's value at the provided path. The default will also search nested paths. */
|
||||
getFn?: FuseGetFunction<T>
|
||||
/** When `true`, search will ignore `location` and `distance`, so it won't matter where in the string the pattern appears. */
|
||||
ignoreLocation?: boolean
|
||||
/** When `true`, the calculation for the relevance score (used for sorting) will ignore the `field-length norm`. */
|
||||
ignoreFieldNorm?: boolean
|
||||
/** Determines how much the `field-length norm` affects scoring. A value of `0` is equivalent to ignoring the field-length norm. A value of `0.5` will greatly reduce the effect of field-length norm, while a value of `2.0` will greatly increase it. */
|
||||
fieldNormWeight?: number
|
||||
/** Whether the matches should be included in the result set. When `true`, each record in the result set will include the indices of the matched characters. These can consequently be used for highlighting purposes. */
|
||||
includeMatches?: boolean
|
||||
/** Whether the score should be included in the result set. A score of `0`indicates a perfect match, while a score of `1` indicates a complete mismatch. */
|
||||
includeScore?: boolean
|
||||
/** List of keys that will be searched. This supports nested paths, weighted search, searching in arrays of `strings` and `objects`. */
|
||||
keys?: Array<FuseOptionKey<T>>
|
||||
/** Determines approximately where in the text is the pattern expected to be found. */
|
||||
location?: number
|
||||
/** Only the matches whose length exceeds this value will be returned. (For instance, if you want to ignore single character matches in the result, set it to `2`). */
|
||||
minMatchCharLength?: number
|
||||
/** Whether to sort the result list, by score. */
|
||||
shouldSort?: boolean
|
||||
/** The function to use to sort all the results. The default will sort by ascending relevance score, ascending index. */
|
||||
sortFn?: FuseSortFunction
|
||||
/** At what point does the match algorithm give up. A threshold of `0.0` requires a perfect match (of both letters and location), a threshold of `1.0` would match anything. */
|
||||
threshold?: number
|
||||
/** When `true`, it enables the use of unix-like search commands. See [example](/examples.html#extended-search). */
|
||||
useExtendedSearch?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* Denotes the start/end indices of a match
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* ```ts
|
||||
* const startIndex = 0;
|
||||
* const endIndex = 5;
|
||||
*
|
||||
* const range: RangeTuple = [startIndex, endIndex];
|
||||
* ```
|
||||
*/
|
||||
type RangeTuple = [number, number]
|
||||
|
||||
type FuseResultMatch = {
|
||||
indices: ReadonlyArray<RangeTuple>
|
||||
key?: string
|
||||
refIndex?: number
|
||||
value?: string
|
||||
}
|
||||
|
||||
type FuseSearchOptions = {
|
||||
limit: number
|
||||
}
|
||||
|
||||
type FuseResult<T> = {
|
||||
item: T
|
||||
refIndex: number
|
||||
score?: number
|
||||
matches?: ReadonlyArray<FuseResultMatch>
|
||||
}
|
||||
|
||||
type Expression =
|
||||
| { [key: string]: string }
|
||||
| {
|
||||
$path: ReadonlyArray<string>
|
||||
$val: string
|
||||
}
|
||||
| { $and?: Expression[] }
|
||||
| { $or?: Expression[] }
|
||||
|
||||
export { Expression, FuseGetFunction, FuseIndex, FuseIndexObjectRecord, FuseIndexOptions, FuseIndexRecords, FuseIndexStringRecord, FuseOptionKey, FuseOptionKeyObject, FuseResult, FuseResultMatch, FuseSearchOptions, FuseSortFunction, FuseSortFunctionArg, FuseSortFunctionItem, FuseSortFunctionMatch, FuseSortFunctionMatchList, IFuseOptions, RangeTuple, RecordEntry, RecordEntryArrayItem, RecordEntryObject, Fuse as default };
|
||||
2033
Frontend-Learner/node_modules/fuse.js/dist/fuse.js
generated
vendored
Normal file
2033
Frontend-Learner/node_modules/fuse.js/dist/fuse.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.min.cjs
generated
vendored
Normal file
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.min.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.min.js
generated
vendored
Normal file
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.min.mjs
generated
vendored
Normal file
9
Frontend-Learner/node_modules/fuse.js/dist/fuse.min.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1794
Frontend-Learner/node_modules/fuse.js/dist/fuse.mjs
generated
vendored
Normal file
1794
Frontend-Learner/node_modules/fuse.js/dist/fuse.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
118
Frontend-Learner/node_modules/fuse.js/package.json
generated
vendored
Normal file
118
Frontend-Learner/node_modules/fuse.js/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
{
|
||||
"name": "fuse.js",
|
||||
"author": {
|
||||
"name": "Kiro Risk",
|
||||
"email": "kirollos@gmail.com",
|
||||
"url": "http://kiro.me"
|
||||
},
|
||||
"type": "module",
|
||||
"main": "./dist/fuse.cjs",
|
||||
"module": "./dist/fuse.mjs",
|
||||
"unpkg": "./dist/fuse.js",
|
||||
"jsdelivr": "./dist/fuse.js",
|
||||
"types": "./dist/fuse.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/fuse.d.ts",
|
||||
"import": "./dist/fuse.mjs",
|
||||
"require": "./dist/fuse.cjs"
|
||||
},
|
||||
"./min": {
|
||||
"types": "./dist/fuse.d.ts",
|
||||
"import": "./dist/fuse.min.mjs",
|
||||
"require": "./dist/fuse.min.cjs"
|
||||
},
|
||||
"./basic": {
|
||||
"types": "./dist/fuse.d.ts",
|
||||
"import": "./dist/fuse.basic.mjs",
|
||||
"require": "./dist/fuse.basic.cjs"
|
||||
},
|
||||
"./min-basic": {
|
||||
"types": "./dist/fuse.d.ts",
|
||||
"import": "./dist/fuse.basic.min.mjs",
|
||||
"require": "./dist/fuse.basic.min.cjs"
|
||||
}
|
||||
},
|
||||
"sideEffects": false,
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"version": "7.1.0",
|
||||
"description": "Lightweight fuzzy-search",
|
||||
"license": "Apache-2.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/krisk/Fuse.git"
|
||||
},
|
||||
"homepage": "http://fusejs.io",
|
||||
"keywords": [
|
||||
"fuzzy",
|
||||
"search",
|
||||
"bitap"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "rollup -w -c scripts/configs.cjs --environment TARGET:umd-dev-full",
|
||||
"dev:cjs": "rollup -w -c scripts/configs.cjs --environment TARGET:commonjs-full",
|
||||
"dev:esm": "rollup -w -c scripts/configs.cjs --environment TARGET:esm-dev-full",
|
||||
"build": "rm -r dist && mkdir dist && node ./scripts/build.main.cjs",
|
||||
"test": "vitest run",
|
||||
"lint": "eslint src test",
|
||||
"release": "./scripts/release.sh",
|
||||
"docs:bump": "node ./scripts/bump-docs.cjs",
|
||||
"docs:dev": "vuepress dev docs",
|
||||
"docs:build": "vuepress build docs",
|
||||
"docs:release": "./scripts/deploy-docs.sh",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"standard-version": {
|
||||
"scripts": {
|
||||
"postbump": "npm run build && npm run lint && npm run test 2>/dev/null",
|
||||
"precommit": "git add dist/*.js dist/*.cjs dist/*.mjs dist/*.d.ts"
|
||||
}
|
||||
},
|
||||
"commitlint": {
|
||||
"extends": [
|
||||
"@commitlint/config-conventional"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.20.7",
|
||||
"@babel/core": "^7.20.12",
|
||||
"@babel/eslint-parser": "^7.19.1",
|
||||
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
||||
"@babel/plugin-syntax-import-assertions": "^7.22.5",
|
||||
"@babel/preset-env": "7.20.2",
|
||||
"@babel/preset-typescript": "7.18.6",
|
||||
"@commitlint/cli": "^17.4.2",
|
||||
"@commitlint/config-conventional": "^17.4.2",
|
||||
"@monaco-editor/loader": "^1.3.2",
|
||||
"@rollup/plugin-babel": "^6.0.3",
|
||||
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||
"@rollup/plugin-replace": "^5.0.2",
|
||||
"@sapphire/stopwatch": "^1.5.0",
|
||||
"@sapphire/utilities": "^3.11.0",
|
||||
"@snippetors/vuepress-plugin-tabs": "1.2.3",
|
||||
"@vuepress/plugin-google-analytics": "2.0.0-beta.60",
|
||||
"@vuepress/plugin-pwa": "2.0.0-beta.60",
|
||||
"@vuepress/plugin-register-components": "2.0.0-beta.60",
|
||||
"@vuepress/plugin-search": "2.0.0-beta.60",
|
||||
"babel-loader": "^9.1.2",
|
||||
"eslint": "8.32.0",
|
||||
"eslint-config-prettier": "8.6.0",
|
||||
"husky": "^8.0.3",
|
||||
"monaco-editor": "^0.34.1",
|
||||
"prettier": "2.8.3",
|
||||
"replace-in-file": "^6.3.5",
|
||||
"rollup": "^2.79.1",
|
||||
"rollup-plugin-dts": "^5.3.0",
|
||||
"standard-version": "^9.5.0",
|
||||
"terser": "^5.16.1",
|
||||
"typescript": "^4.9.4",
|
||||
"vitest": "^0.28.3",
|
||||
"vuepress": "2.0.0-beta.60",
|
||||
"vuepress-plugin-google-adsense2": "1.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue