fubi 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -38
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,47 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Fubi
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Fubi is a lightweight, feature-rich in-page feedback and collaboration tool built with Svelte. It allows users to leave contextual comments on specific elements of your web application, streamlining the feedback process for teams.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Features
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- **Element Isolation**: Select and isolate specific page elements for targeted feedback
|
|
8
|
+
- **Threaded Comments**: Create and manage comment threads tied to specific page elements
|
|
9
|
+
- **Project Management**: Organize feedback by projects
|
|
10
|
+
- **Page Tracking**: Automatically tracks pages where feedback is provided
|
|
11
|
+
- **Real-time Updates**: Get notified of new comments and threads in real-time
|
|
12
|
+
- **Easy Integration**: Simple to integrate into any web application
|
|
8
13
|
|
|
9
|
-
##
|
|
14
|
+
## Installation
|
|
10
15
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
**Why use this over SvelteKit?**
|
|
16
|
-
|
|
17
|
-
- It brings its own routing solution which might not be preferable for some users.
|
|
18
|
-
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
|
|
19
|
-
|
|
20
|
-
This template contains as little as possible to get started with Vite + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
|
|
21
|
-
|
|
22
|
-
Should you later need the extended capabilities and extensibility provided by SvelteKit, the template has been structured similarly to SvelteKit so that it is easy to migrate.
|
|
23
|
-
|
|
24
|
-
**Why `global.d.ts` instead of `compilerOptions.types` inside `jsconfig.json` or `tsconfig.json`?**
|
|
25
|
-
|
|
26
|
-
Setting `compilerOptions.types` shuts out all other types not explicitly listed in the configuration. Using triple-slash references keeps the default TypeScript setting of accepting type information from the entire workspace, while also adding `svelte` and `vite/client` type information.
|
|
27
|
-
|
|
28
|
-
**Why include `.vscode/extensions.json`?**
|
|
29
|
-
|
|
30
|
-
Other templates indirectly recommend extensions via the README, but this file allows VS Code to prompt the user to install the recommended extension upon opening the project.
|
|
31
|
-
|
|
32
|
-
**Why enable `checkJs` in the JS template?**
|
|
33
|
-
|
|
34
|
-
It is likely that most cases of changing variable types in runtime are likely to be accidental, rather than deliberate. This provides advanced typechecking out of the box. Should you like to take advantage of the dynamically-typed nature of JavaScript, it is trivial to change the configuration.
|
|
35
|
-
|
|
36
|
-
**Why is HMR not preserving my local component state?**
|
|
37
|
-
|
|
38
|
-
HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/sveltejs/svelte-hmr/tree/master/packages/svelte-hmr#preservation-of-local-state).
|
|
16
|
+
```bash
|
|
17
|
+
npm install fubi
|
|
18
|
+
```
|
|
39
19
|
|
|
40
|
-
|
|
20
|
+
## Basic Usage
|
|
41
21
|
|
|
42
22
|
```js
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
23
|
+
import { fubi } from 'fubi';
|
|
24
|
+
|
|
25
|
+
// Initialize Fubi with your configuration
|
|
26
|
+
const app = fubi({
|
|
27
|
+
project: 'my-project',
|
|
28
|
+
content: "body", // any valid CSS selector
|
|
29
|
+
ignore: ["script", "style", "noscript", "br", "hr"], // array of elements to ignore
|
|
30
|
+
target: "body" // where to mount the Fubi container
|
|
31
|
+
});
|
|
47
32
|
```
|
|
33
|
+
|
|
34
|
+
## Getting Started
|
|
35
|
+
|
|
36
|
+
To use Fubi, you'll need to create an account at [fubi.dev](https://fubi.dev) where you can set up your projects and manage your feedback.
|