@ossy/web 1.1.0

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 ADDED
@@ -0,0 +1,12 @@
1
+ # @ossy/web
2
+
3
+ Web feature package for the Ossy platform. Provides resource templates for managing web content including pages, links, profiles, and analytics.
4
+
5
+ ## Resource Templates
6
+
7
+ | Resource | ID |
8
+ |----------|----|
9
+ | Link | `@ossy/web/link` |
10
+ | Page | `@ossy/web/page` |
11
+ | Page View | `@ossy/web/page-view` |
12
+ | Profile | `@ossy/web/profile` |
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@ossy/web",
3
+ "description": "Web feature package — link, page, page-view, and profile resource templates for Ossy web properties",
4
+ "version": "1.1.0",
5
+ "type": "module",
6
+ "main": "./src/index.js",
7
+ "module": "./src/index.js",
8
+ "exports": {
9
+ ".": "./src/index.js"
10
+ },
11
+ "author": "Ossy <yourfriends@ossy.se> (https://ossy.se)",
12
+ "license": "MIT",
13
+ "ossy": {
14
+ "src": "./src"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public",
18
+ "registry": "https://registry.npmjs.org"
19
+ },
20
+ "files": [
21
+ "/src",
22
+ "README.md"
23
+ ],
24
+ "gitHead": "9b116b6a4fadd570c1e6c0c6d9a4867448f7410c"
25
+ }
package/src/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export { default as linkResource } from './link.resource.js'
2
+ export { default as pageResource } from './page.resource.js'
3
+ export { default as pageViewResource } from './page-view.resource.js'
4
+ export { default as profileResource } from './profile.resource.js'
@@ -0,0 +1,20 @@
1
+ export default {
2
+ name: 'Link',
3
+ id: '@ossy/web/link',
4
+ categoryName: 'Web',
5
+ icon: 'link',
6
+ fields: [
7
+ {
8
+ name: 'label',
9
+ type: 'text',
10
+ },
11
+ {
12
+ name: 'url',
13
+ type: 'text',
14
+ },
15
+ {
16
+ name: 'icon',
17
+ type: 'text',
18
+ },
19
+ ],
20
+ }
@@ -0,0 +1,38 @@
1
+ export default {
2
+ name: 'Page View',
3
+ id: '@ossy/web/page-view',
4
+ categoryName: 'Analytics',
5
+ icon: 'chart',
6
+ fields: [
7
+ {
8
+ name: 'path',
9
+ type: 'text',
10
+ required: true,
11
+ },
12
+ {
13
+ name: 'language',
14
+ type: 'text',
15
+ },
16
+ {
17
+ name: 'section',
18
+ type: 'text',
19
+ },
20
+ {
21
+ name: 'referrer',
22
+ type: 'text',
23
+ },
24
+ {
25
+ name: 'userAgent',
26
+ type: 'textarea',
27
+ },
28
+ {
29
+ name: 'visitorId',
30
+ type: 'text',
31
+ },
32
+ {
33
+ name: 'eventAt',
34
+ type: 'number',
35
+ required: true,
36
+ },
37
+ ],
38
+ }
@@ -0,0 +1,20 @@
1
+ export default {
2
+ name: 'Page',
3
+ id: '@ossy/web/page',
4
+ categoryName: 'Web',
5
+ icon: 'file-document',
6
+ fields: [
7
+ {
8
+ name: 'title',
9
+ type: 'text',
10
+ },
11
+ {
12
+ name: 'description',
13
+ type: 'textarea',
14
+ },
15
+ {
16
+ name: 'body',
17
+ type: 'richtext',
18
+ },
19
+ ],
20
+ }
@@ -0,0 +1,16 @@
1
+ export default {
2
+ name: 'Profile',
3
+ id: '@ossy/web/profile',
4
+ categoryName: 'Web',
5
+ icon: 'user',
6
+ fields: [
7
+ {
8
+ name: 'name',
9
+ type: 'text',
10
+ },
11
+ {
12
+ name: 'bio',
13
+ type: 'textarea',
14
+ },
15
+ ],
16
+ }