@strands.gg/accui 1.1.0 → 1.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 +15 -42
- package/dist/accui.css +0 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ This library requires:
|
|
|
12
12
|
- **Valid domain** registered with Strands Services
|
|
13
13
|
- **Internal infrastructure** access
|
|
14
14
|
|
|
15
|
-
**This package is published for internal convenience only and cannot be used by external applications.**
|
|
15
|
+
**This package is published for internal convenience only and cannot easily be used by external applications.**
|
|
16
16
|
|
|
17
17
|
## 🚀 Features (Internal Use Only)
|
|
18
18
|
|
|
@@ -62,17 +62,17 @@ export default defineNuxtConfig({
|
|
|
62
62
|
// API endpoint (required)
|
|
63
63
|
baseUrl: process.env.NODE_ENV === 'development'
|
|
64
64
|
? 'http://localhost:8000'
|
|
65
|
-
: 'https://
|
|
65
|
+
: 'https://your-api.example.com',
|
|
66
66
|
|
|
67
67
|
// Navigation
|
|
68
68
|
onSignInUrl: '/dashboard',
|
|
69
69
|
onSignOutUrl: '/',
|
|
70
70
|
|
|
71
71
|
// OAuth2 configuration
|
|
72
|
-
oauth2RedirectUrl: 'https://
|
|
72
|
+
oauth2RedirectUrl: 'https://your-app.example.com/oauth2/callback', // Optional
|
|
73
73
|
|
|
74
74
|
// Support
|
|
75
|
-
supportEmail: 'support@
|
|
75
|
+
supportEmail: 'support@your-app.example.com', // Optional
|
|
76
76
|
|
|
77
77
|
// Development
|
|
78
78
|
devMode: process.env.NODE_ENV === 'development',
|
|
@@ -90,17 +90,6 @@ export default defineNuxtConfig({
|
|
|
90
90
|
guestOnlyRoutes: ['/auth', '/login', '/register']
|
|
91
91
|
}
|
|
92
92
|
})
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Required Backend Setup
|
|
96
|
-
|
|
97
|
-
Your domain must be registered in our applications database:
|
|
98
|
-
|
|
99
|
-
```sql
|
|
100
|
-
-- Applications are managed by Strands Services admins
|
|
101
|
-
INSERT INTO applications (domain, name, logo_url)
|
|
102
|
-
VALUES ('myapp.strands.gg', 'My App', 'https://myapp.strands.gg/logo.png');
|
|
103
|
-
```
|
|
104
93
|
|
|
105
94
|
## 🧩 Components
|
|
106
95
|
|
|
@@ -163,7 +152,7 @@ strandsAuth: {
|
|
|
163
152
|
## 🚨 Common Issues
|
|
164
153
|
|
|
165
154
|
### "Cannot connect to API"
|
|
166
|
-
- Verify your domain is registered
|
|
155
|
+
- Verify your domain is registered with us
|
|
167
156
|
- Check CORS is enabled for your origin
|
|
168
157
|
- Ensure API is running (development: port 8000)
|
|
169
158
|
|
|
@@ -178,28 +167,19 @@ strandsAuth: {
|
|
|
178
167
|
|
|
179
168
|
## 🔧 Development Setup
|
|
180
169
|
|
|
181
|
-
For local development of Strands applications:
|
|
170
|
+
For local development of Strands applications, configure your Nuxt app to use the development API endpoint:
|
|
182
171
|
|
|
183
|
-
1. Run the API locally:
|
|
184
|
-
```bash
|
|
185
|
-
cd apps/accounts-api
|
|
186
|
-
cargo run --bin accounts-api
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
2. Register your local domain:
|
|
190
|
-
```sql
|
|
191
|
-
INSERT INTO applications (domain, name)
|
|
192
|
-
VALUES ('localhost:3001', 'Local Dev');
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
3. Configure Nuxt:
|
|
196
172
|
```typescript
|
|
197
173
|
strandsAuth: {
|
|
198
|
-
baseUrl: '
|
|
174
|
+
baseUrl: process.env.NODE_ENV === 'development'
|
|
175
|
+
? 'http://localhost:8000'
|
|
176
|
+
: 'https://your-api.example.com',
|
|
199
177
|
devMode: true
|
|
200
178
|
}
|
|
201
179
|
```
|
|
202
180
|
|
|
181
|
+
Contact the platform team to register your local development domain.
|
|
182
|
+
|
|
203
183
|
## 📋 TypeScript Types
|
|
204
184
|
|
|
205
185
|
```typescript
|
|
@@ -212,13 +192,10 @@ import type {
|
|
|
212
192
|
} from '@strands.gg/accui'
|
|
213
193
|
```
|
|
214
194
|
|
|
215
|
-
## 🏗️
|
|
195
|
+
## 🏗️ Requirements
|
|
216
196
|
|
|
217
|
-
- **
|
|
218
|
-
- **
|
|
219
|
-
- **Email**: SMTP server for magic links
|
|
220
|
-
- **Storage**: S3-compatible for avatars (optional)
|
|
221
|
-
- **Domain**: Registered in applications table
|
|
197
|
+
- **Domain Registration**: Your application domain must be registered with Strands Services
|
|
198
|
+
- **HTTPS**: Required for production OAuth and hardware key authentication
|
|
222
199
|
|
|
223
200
|
## 📄 License
|
|
224
201
|
|
|
@@ -226,8 +203,4 @@ import type {
|
|
|
226
203
|
|
|
227
204
|
This software is the proprietary property of Strands Services Limited and may only be used in accordance with the terms of your agreement with Strands Services.
|
|
228
205
|
|
|
229
|
-
---
|
|
230
|
-
|
|
231
|
-
**Internal Support**: Contact the platform team via Slack #platform-support
|
|
232
|
-
|
|
233
|
-
**External Inquiries**: This package is not available for external use. For partnership inquiries, contact business@strands.gg
|
|
206
|
+
---
|
package/dist/accui.css
CHANGED
|
@@ -454,9 +454,6 @@
|
|
|
454
454
|
.inline-flex {
|
|
455
455
|
display: inline-flex;
|
|
456
456
|
}
|
|
457
|
-
.table {
|
|
458
|
-
display: table;
|
|
459
|
-
}
|
|
460
457
|
.h-3 {
|
|
461
458
|
height: calc(var(--spacing) * 3);
|
|
462
459
|
}
|
|
@@ -799,9 +796,6 @@
|
|
|
799
796
|
.bg-red-400 {
|
|
800
797
|
background-color: var(--color-red-400);
|
|
801
798
|
}
|
|
802
|
-
.bg-red-500 {
|
|
803
|
-
background-color: var(--color-red-500);
|
|
804
|
-
}
|
|
805
799
|
.bg-strands-50 {
|
|
806
800
|
background-color: var(--color-strands-50);
|
|
807
801
|
}
|