Skip to content

Commit d9d4765

Browse files
committed
fix: add debug error on hashfile does not exist for heavy_debug
1 parent 9cfc2a8 commit d9d4765

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

adminforth/documentation/docs/tutorial/03-Customization/15-afcl.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,19 @@ Default behavior of the Dialog component will allow user to close it by just cli
519519
</div>
520520
</div>
521521

522-
### Dialog open and close
522+
### Programatically open or close dialog
523523

524-
You can open and close dialog by calling `open` and `close` methods.
524+
If you want to control dialog programmatically, you can use `ref` to get a reference to the dialog component.
525+
526+
```html
527+
<Dialog ref="confirmDialog" class="w-96">
528+
<div class="space-y-4">
529+
The dialog content goes here.
530+
</div>
531+
</Dialog>
532+
```
533+
534+
Now you can open and close dialog by calling `open` and `close` methods.
525535

526536
```ts
527537

adminforth/documentation/docs/tutorial/05-Plugins/05-upload.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ This plugin allows you to upload files to Amazon S3 bucket.
66

77
```
88
npm i @adminforth/upload --save
9-
npm i @adminforth/storage-adapter-amazon-s3 --save
109
```
1110

12-
## S3
11+
Plugin needs some storage adapter to store files and serve them for preview.
12+
13+
### Using Amazon S3 storage adapter
14+
15+
Amazon S3 is probably the most popular storage service.
16+
17+
```
18+
npm i @adminforth/storage-adapter-amazon-s3 --save
19+
```
1320

1421
1. Go to https://aws.amazon.com and login.
1522
2. Go to Services -> S3 and create a bucket. Put in bucket name e.g. `my-reality-bucket`.
@@ -204,7 +211,7 @@ export async function getPresignedUrl(s3Path: string): Promise<string> {
204211
205212
Alternatively, if you don't want to generate presigned URLs, you might want to make all objects public. Then you will be able concatenate backet base domain and path stored in db, and use it as source of image. Let's consider how to do it.
206213
207-
### S3 upload with public access
214+
#### S3 upload with public access
208215
209216
1. First of all go to your bucket settings, Permissions, scroll down to Block public access (bucket settings for this bucket) and uncheck all checkboxes.
210217
2. Go to bucket settings, Permissions, Object ownership and select "ACLs Enabled" and "Bucket owner preferred" radio buttons.
@@ -268,6 +275,8 @@ If for example your domain is `my-domain.com` and you bucket has name `static.my
268275
269276
Also you will have to enable static website hosting in your bucket settings and set index.html and error.html to empty strings.
270277
278+
### S
279+
271280
272281
## Image generation
273282

adminforth/modules/codeInjector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ class CodeInjector implements ICodeInjector {
596596
}
597597
} catch (e) {
598598
// ignore
599-
process.env.HEAVY_DEBUG && console.log('🪲Hash file does not exist, proceeding with npm ci/install');
599+
process.env.HEAVY_DEBUG && console.log('🪲Hash file does not exist, proceeding with npm ci/install', e);
600600
}
601601

602602
await this.runNpmShell({command: 'ci', cwd: this.spaTmpPath(), envOverrides: {

0 commit comments

Comments
 (0)