diff --git a/cmd/qor5/admin-template/admin/config.go b/cmd/qor5/admin-template/admin/config.go index 088b2a1..f91dd4a 100644 --- a/cmd/qor5/admin-template/admin/config.go +++ b/cmd/qor5/admin-template/admin/config.go @@ -6,8 +6,8 @@ import ( "github.com/qor5/admin/v3/presets" "github.com/qor5/admin/v3/presets/gorm2op" "github.com/qor5/docs/v3/cmd/qor5/admin-template/models" - . "github.com/qor5/ui/v3/vuetify" "github.com/qor5/web/v3" + . "github.com/qor5/x/v3/ui/vuetify" . "github.com/theplant/htmlgo" ) diff --git a/cmd/qor5/website-template/admin/config.go b/cmd/qor5/website-template/admin/config.go index 50e2949..e0185a3 100644 --- a/cmd/qor5/website-template/admin/config.go +++ b/cmd/qor5/website-template/admin/config.go @@ -14,10 +14,10 @@ import ( "github.com/qor5/admin/v3/publish" "github.com/qor5/admin/v3/seo" "github.com/qor5/admin/v3/utils" - "github.com/qor5/ui/v3/vuetify" "github.com/qor5/web/v3" "github.com/qor5/x/v3/login" "github.com/qor5/x/v3/perm" + "github.com/qor5/x/v3/ui/vuetify" h "github.com/theplant/htmlgo" "golang.org/x/text/language" ) diff --git a/docs/activity-log.html b/docs/activity-log.html index fe48cf3..14aeeb8 100644 --- a/docs/activity-log.html +++ b/docs/activity-log.html @@ -237,7 +237,7 @@

Initialize the activity package

Register the models that require activity tracking

This example demonstrates how to register Product into the activity. The activities on the product model will be automatically recorded when it is created, updated, or deleted.

- +

By default, the activity package will use the primary key as the key to indentify the current model data. You can use SetKeys and AddKeys methods to customize it.

When diffing the modified data, the activity package will ignore the ID, CreatedAt, UpdatedAt, DeletedAt fields. You can either use AddIgnoredFields to append your own fields to the default ignored fields. Or SetIgnoredFields method to replace the default ignored fields.

For special fields like time.Time or media files handled by QOR5 media_library, activity package already handled them. You can use AddTypeHanders method to handle your own field types.

diff --git a/docs/advanced-functions/the-go-html-builder.html b/docs/advanced-functions/the-go-html-builder.html index 322eab7..7390e4e 100644 --- a/docs/advanced-functions/the-go-html-builder.html +++ b/docs/advanced-functions/the-go-html-builder.html @@ -239,7 +239,7 @@

The Go HTML builder

Check the demo | -Source on GitHub +Source on GitHub
diff --git a/docs/appendix/all-demo-examples.html b/docs/appendix/all-demo-examples.html index 9980a8d..1f78db8 100644 --- a/docs/appendix/all-demo-examples.html +++ b/docs/appendix/all-demo-examples.html @@ -223,379 +223,379 @@

All Demo Examples

  • Vuetify List | -Source +Source
  • Vuetify Menu | -Source +Source
  • Presets Detail Page Top Notes | -Source +Source
  • Presets Detail Page Details | -Source +Source
  • Presets Detail Page Credit Cards | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Event Handling | -Source +Source
  • Lazy Portals | -Source +Source
  • Manipulate Page URL In Event Func | -Source +Source
  • Vuetify Navigation Drawer | -Source +Source
  • Page Func and Event Func | -Source +Source
  • Partial Update | -Source +Source
  • Partial Reload | -Source +Source
  • Reload Page With a Flash | -Source +Source
  • Switch Pages With Push State | -Source +Source
  • The Go HTML Builder | -Source +Source
  • Web Scope Use Locals | -Source +Source
  • Web Scope Use PlaidForm | -Source +Source
  • Composite New Component With Go | -Source +Source
  • Integrate a Heavy Vue Component | -Source +Source
  • Hello World | -Source +Source
  • Vuetify Basic Inputs | -Source +Source
  • Brand Title | -Source +Source
  • Brand Func | -Source +Source
  • Profile | -Source +Source
  • Confirm Dialog | -Source +Source
  • Presets Editing Customization Description Field | -Source +Source
  • Presets Editing Customization File Type | -Source +Source
  • Presets Editing Customization Tabs | -Source +Source
  • Presets Editing Customization Validation | -Source +Source
  • Basic filter | -Source +Source
  • Form Handling | -Source +Source
  • I18n | -Source +Source
  • Presets Hello World | -Source +Source
  • Vuetify LinkageSelect | -Source +Source
  • LinkageSelect Filter Item | -Source +Source
  • Presets Listing Customization Fields | -Source +Source
  • Presets Listing Filters | -Source +Source
  • Presets Listing Filter Tabs | -Source +Source
  • Presets Listing Bulk Actions | -Source +Source
  • Search Func | -Source +Source
  • Presets Listing Customization Fields | -Source +Source
  • L10n | -Source +Source
  • Menu Order | -Source +Source
  • Menu Group | -Source +Source
  • Notification Center | -Source +Source
  • Publish | -Source +Source
  • Shortcut | -Source +Source
  • Vuetify Variant Sub Form | -Source +Source
  • Worker | -Source +Source
  • Action Worker | -Source +Source
  • diff --git a/docs/basics/brand.html b/docs/basics/brand.html index 60e44bc..a66b97e 100644 --- a/docs/basics/brand.html +++ b/docs/basics/brand.html @@ -228,7 +228,7 @@

    Simple customization

    Check the demo | -Source on GitHub +Source on GitHub

    Full customization

    @@ -240,7 +240,7 @@

    Full customization

    Check the demo | -Source on GitHub +Source on GitHub

    Profile

    @@ -252,7 +252,7 @@

    Profile

    Check the demo | -Source on GitHub +Source on GitHub
    diff --git a/docs/basics/confirm-dialog.html b/docs/basics/confirm-dialog.html index b0c1560..3dd4076 100644 --- a/docs/basics/confirm-dialog.html +++ b/docs/basics/confirm-dialog.html @@ -238,7 +238,7 @@

    Example

    Check the demo | -Source on GitHub +Source on GitHub
    diff --git a/docs/basics/event-handling.html b/docs/basics/event-handling.html index 27358a5..6caa6f7 100644 --- a/docs/basics/event-handling.html +++ b/docs/basics/event-handling.html @@ -233,7 +233,7 @@

    URL
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -248,7 +248,7 @@

    PushState
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -263,7 +263,7 @@

    Reload
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -278,7 +278,7 @@

    Query
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -293,7 +293,7 @@

    MergeQuery
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -308,7 +308,7 @@

    ClearMergeQuery
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -323,7 +323,7 @@

    StringQuery
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -338,7 +338,7 @@

    Queries
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -353,7 +353,7 @@

    PushStateURL
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -368,7 +368,7 @@

    Location
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -383,7 +383,7 @@

    FieldValue
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -398,7 +398,7 @@

    EventFunc
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -413,7 +413,7 @@

    Script
    Check the demo | -Source on GitHub +Source on GitHub
    @@ -428,7 +428,7 @@

    Raw
    Check the demo | -Source on GitHub +Source on GitHub
    diff --git a/docs/basics/filter.html b/docs/basics/filter.html index 45e8b0d..3e46fbc 100644 --- a/docs/basics/filter.html +++ b/docs/basics/filter.html @@ -220,13 +220,13 @@

    Filters

    Assume we have a status filed in Post. It has 2 possible values, "draft" and "online". If we want to filter posts by its status. We can add a filter like this:

    - +

    QOR5 now supports 7 types of filter option.

    diff --git a/docs/basics/form-handling.html b/docs/basics/form-handling.html index f8a8a56..40cf17c 100644 --- a/docs/basics/form-handling.html +++ b/docs/basics/form-handling.html @@ -229,7 +229,7 @@

    Form Handling

    Check the demo | -Source on GitHub +Source on GitHub

    Use .Attr(web.VField("Abc")...) to set the field name, make the name matches your data struct field name.
    diff --git a/docs/basics/i18n.html b/docs/basics/i18n.html index f06fa03..c38c962 100644 --- a/docs/basics/i18n.html +++ b/docs/basics/i18n.html @@ -229,7 +229,7 @@

    Internationalization

    Check the demo | -Source on GitHub +Source on GitHub

    Getting Started

    diff --git a/docs/basics/l10n.html b/docs/basics/l10n.html index dde7217..73d7d21 100644 --- a/docs/basics/l10n.html +++ b/docs/basics/l10n.html @@ -227,9 +227,9 @@

    Define a struct

    Init a l10n builder

    Register locales here.
    -You can use GetSupportLocaleCodesFromRequestFunc to determine who can use which locales.

    +You can use SupportLocalesFunc to determine who can use which locales.

    - +

    Configure the model builder

    Use l10n_view.Configure() func to configure l10n view.
    The Switch Locale ui will appear below the Brand.
    @@ -239,13 +239,13 @@

    Configure the model builder

    Full Example

    - +
    Check the demo | -Source on GitHub +Source on GitHub
    diff --git a/docs/basics/listing-customizations.html b/docs/basics/listing-customizations.html index 63dff76..50dcf85 100644 --- a/docs/basics/listing-customizations.html +++ b/docs/basics/listing-customizations.html @@ -232,7 +232,7 @@

    Change List Columns and Comp
    Check the demo | -Source on GitHub +Source on GitHub

    What we did with above code:

    @@ -257,7 +257,7 @@

    Filters Panel
    Check the demo | -Source on GitHub +Source on GitHub

    FilterDataFunc of presets.ListingBuilder setup to have the filter menu or not.
    @@ -284,7 +284,7 @@

    Filter Tabs
    Check the demo | -Source on GitHub +Source on GitHub

    Query string name must be from the Filter's item configuration key field.

    @@ -302,7 +302,7 @@

    Bulk Actions
    Check the demo | -Source on GitHub +Source on GitHub