Documentation
¶
Index ¶
- Constants
- Variables
- func ConnectDB() (db *gorm.DB)
- func Dashboard() h.HTMLComponent
- func DemoCaseCheckBox(obj interface{}, editField, field, label string) *vx.VXCheckboxBuilder
- func DemoCaseDatepicker(obj interface{}, editField, field, label string, vErr web.ValidationErrors) *vx.VXDatePickerBuilder
- func DemoCaseRangePicker(obj interface{}, editField, field, label string, vErr web.ValidationErrors) *vx.VXRangePickerBuilder
- func DemoCaseSelect(obj interface{}, editField, field, label string, vErr web.ValidationErrors, ...) *vx.VXSelectBuilder
- func DemoCaseTextField(obj interface{}, editField, field, label string, vErr web.ValidationErrors) *vx.VXFieldBuilder
- func EmptyDB(db *gorm.DB, tables []string)
- func ErasePublicUsersData(db *gorm.DB)
- func GetColoredStatus(status models.OrderStatus) h.HTMLComponent
- func GetNonIgnoredTableNames(db *gorm.DB) []string
- func InitDB(db *gorm.DB, tables []string)
- func Router(db *gorm.DB) http.Handler
- func TestHandler(db *gorm.DB, u *models.User) http.Handler
- func TestHandlerWorker(db *gorm.DB, u *models.User) http.Handler
- type CheckboxData
- type Config
- type ConfigOption
- type DataTableHeader
- type DatepickerData
- type DemoCase
- type DemoSelectItem
- type ECDashboard
- type FieldData
- type FieldNumberData
- type FieldPasswordData
- type FieldTextareaData
- type Messages
- type Messages_ModelsI18nModuleKey
- type PaginationData
- type SelectData
- type TabsData
Constants ¶
View Source
const ( OrderCodeAttr = "ID" CreatedDateAttr = "CreatedAt" CheckInDateAttr = "ConfirmedAt" StatusAttr = "Status" PaymentMethodAttr = "PaymentMethod" DeliveryMethodAttr = "DeliveryMethod" SourceAttr = "Source" OrderItemsAttr = "OrderItems" ActionsAttr = "Actions" )
View Source
const I18nExampleKey i18n.ModuleKey = "I18nExampleKey"
Variables ¶
View Source
var CategoriesExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.categories (id, created_at, updated_at, deleted_at, name, products, status, online_url, scheduled_start_at, scheduled_end_at, actual_start_at, actual_end_at, version, version_name, parent_version) VALUES (1, '2023-01-05 06:19:30.633000 +00:00', '2023-01-05 06:19:30.633000 +00:00', null, 'Demo', null, 'draft', '', null, null, null, null, '2023-01-05-v01', '', ''); `, []string{"categories"}))
View Source
var InputDemosExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.input_demos (id, text_field1, text_area1, switch1, slider1, select1, range_slider1, radio1, file_input1, combobox1, checkbox1, autocomplete1, button_group1, chip_group1, item_group1, list_item_group1, slide_group1, color_picker1, date_picker1, date_picker_month1, time_picker1, media_library1, updated_at, created_at) VALUES (1, 'Demo', '', false, 0, '', null, '', '', '', false, '{}', '', '', '', '', '', '', '', '', '', null, '2023-01-05 06:21:36.488000 +00:00', '2023-01-05 06:21:36.488000 +00:00'); `, []string{"input_demos"}))
View Source
var ListModelsExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.list_models (id, created_at, updated_at, deleted_at, title, status, online_url, scheduled_start_at, scheduled_end_at, actual_start_at, actual_end_at, page_number, position, list_deleted, list_updated, version, version_name, parent_version) VALUES (1, '2023-01-05 08:45:36.783000 +00:00', '2023-01-05 08:45:36.783000 +00:00', null, 'Demo', 'draft', '', null, null, null, null, 0, 0, false, false, '2023-01-05-v01', '', ''); `, []string{"list_models"}))
View Source
var MediaLibrariesExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (1, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"aigle.png","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/1/file.png","Width":320,"Height":84,"FileSizes":{"@qor_preview":17065,"default":3159,"original":3159},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (2, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"asics.png","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/2/file.png","Width":254,"Height":84,"FileSizes":{"@qor_preview":15571,"default":3060,"original":3060},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (3, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"file.20210903061739.png","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/3/file.png","Width":1722,"Height":196,"FileSizes":{"@qor_preview":627,"default":6887,"original":6887},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (4, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"file.20211006224452.jpg","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/4/file.jpg","Width":2880,"Height":720,"FileSizes":{"@qor_preview":19981,"default":257343,"original":257343},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (5, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"file.20211007041906.png","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/5/file.png","Width":481,"Height":741,"FileSizes":{"@qor_preview":79999,"default":234306,"original":234306},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (6, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"file.20211007042027.png","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/6/file.png","Width":481,"Height":741,"FileSizes":{"@qor_preview":65623,"default":203098,"original":203098},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (7, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"file.20211007042131.png","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/7/file.png","Width":481,"Height":741,"FileSizes":{"@qor_preview":64838,"default":189979,"original":189979},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (8, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"file.20211007051449.png","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/8/file.png","Width":2880,"Height":1097,"FileSizes":{"@qor_preview":75734,"default":2236473,"original":2236473},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (9, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"file.png","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/9/file.png","Width":1252,"Height":658,"FileSizes":{"@qor_preview":41622,"default":227103,"original":227103},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (10, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"lacoste.png","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/10/file.png","Width":470,"Height":84,"FileSizes":{"@qor_preview":11839,"default":4714,"original":4714},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (11, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"mob-mv.mov","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/11/file.mov","Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (12, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"mob.jpg","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/12/file.jpg","Width":1536,"Height":2876,"FileSizes":{"@qor_preview":33140,"default":465542,"original":465542},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (13, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"nhk.png","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/13/file.png","Width":202,"Height":84,"FileSizes":{"@qor_preview":14500,"default":2066,"original":2066},"Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (14, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"pc-mv.mov","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/14/file.mov","Video":"","SelectedType":"","Description":""}'); INSERT INTO public.media_libraries (id, created_at, updated_at, deleted_at, selected_type, file) VALUES (15, '2024-05-23 22:12:07.990058 +00:00', null, null, 'image', '{"FileName":"pc.jpg","Url":"https://s3.ap-northeast-1.amazonaws.com/system/media_libraries/15/file.jpg","Width":2560,"Height":1440,"FileSizes":{"@qor_preview":33019,"default":646542,"original":646542},"Video":"","SelectedType":"","Description":""}'); `, []string{"media_libraries"}))
View Source
var Messages_en_US = &Messages{
FilterTabsAll: "All",
FilterTabsHasUnreadNotes: "Has Unread Notes",
FilterTabsActive: "Active",
DemoTips: "Please note that the database would be reset every even hour.",
DemoUsernameLabel: "Demo Username: ",
DemoPasswordLabel: "Demo Password: ",
LoginProviderGoogleText: "Login with Google",
LoginProviderMicrosoftText: "Login with Microsoft",
LoginProviderGithubText: "Login with Github",
OAuthCompleteInfoTitle: "Complete your information",
OAuthCompleteInfoPositionLabel: "Position(Optional)",
OAuthCompleteInfoAgreeLabel: "Subscribe to QOR5 newsletter(Optional)",
OAuthCompleteInfoBackLabel: "Back to login",
Demo: "DEMO",
DBResetTipLabel: "Database reset countdown",
Name: "Name",
Email: "Email",
Company: "Company",
Role: "Role",
Status: "Status",
ChangePassword: "Change Password",
LoginSessions: "Login Sessions",
}
View Source
var Messages_ja_JP = &Messages{
FilterTabsAll: "すべて",
FilterTabsHasUnreadNotes: "未読のノートがあります",
FilterTabsActive: "有効",
DemoTips: "データベースは偶数時間ごとにリセットされることに注意してください。",
DemoUsernameLabel: "デモのユーザー名: ",
DemoPasswordLabel: "デモパスワード: ",
LoginProviderGoogleText: "Googleでログイン",
LoginProviderMicrosoftText: "Microsoftでログイン",
LoginProviderGithubText: "Githubでログイン",
OAuthCompleteInfoTitle: "情報を入力してください",
OAuthCompleteInfoPositionLabel: "役職(任意)",
OAuthCompleteInfoAgreeLabel: "QOR5ニュースレターを購読する(任意)",
OAuthCompleteInfoBackLabel: "ログインに戻る",
Demo: "デモ",
DBResetTipLabel: "データベースリセットのカウントダウン",
Name: "名前",
Email: "メール",
Company: "会社",
Role: "役割",
Status: "ステータス",
ChangePassword: "パスワードを変更する",
LoginSessions: "ログインセッション",
}
View Source
var Messages_ja_JP_ModelsI18nModuleKey = &Messages_ModelsI18nModuleKey{
Posts: "投稿",
PostsID: "投稿ID",
PostsTitle: "投稿タイトル",
PostsHeroImage: "メイン画像",
PostsBody: "コンテンツ",
Example: "QOR5サンプル",
Settings: "設定",
Post: "投稿",
PostsBodyImage: "内容イメージ",
SeoPost: "SEO 投稿",
SeoVariableTitle: "SEO タイトル",
SeoVariableSiteName: "SEO サイト名",
QOR5Example: "QOR5サンプル",
Roles: "ユーザー権限",
Users: "ユーザー",
PageBuilder: "ページビルダー",
Pages: "ページ",
SharedContainers: "共有コンテナ",
DemoContainers: "デモ用コン店た",
Templates: "テンプレート",
PageCategories: "カテゴリ",
ECManagement: "ECマネジメント",
ECDashboard: "ECダッシュボード",
Orders: "注文",
InputDemos: "入力デモ",
Products: "製品",
SiteManagement: "サイト管理",
NestedFieldDemos: "ネストフィールドデモ",
SEO: "SEO",
UserManagement: "ユーザー管理",
Profile: "プロフィール",
FeaturedModelsManagement: "モデル管理",
Customers: "お客さま",
ListModels: "リストモデル",
MicrositeModels: "マイクロサイトモデル",
Workers: "ワーカーズ",
MediaLibrary: "メディアライブラリ",
PagesID: "ID",
PagesTitle: "タイトル",
PagesSlug: "スラッグ",
PagesLocale: "ローカル",
PagesNotes: "ノート",
PagesDraftCount: "カウント下書き",
PagesPath: "パス",
PagesOnline: "オンライン",
PagesVersion: "バージョン",
PagesVersions: "バージョン",
PagesStartAt: "開始日時",
PagesEndAt: "終了日時",
PagesOption: "オプション",
PagesLive: "ライブ",
Page: "ページ",
PagesStatus: "状態",
PagesSchedule: "スケジュール",
PagesCategoryID: "カテゴリID",
PagesTemplateSelection: "テンプレート選択",
PagesEditContainer: "コンテナ編集",
WebHeader: "ウェブヘッダー",
WebHeadersColor: "カラー",
Header: "ヘッダー",
Navigation: "Navigation",
Content: "Content",
WebFooter: "ウェブ用フッター",
WebFootersEnglishUrl: "英語用URL",
WebFootersJapaneseUrl: "日本語用URL",
Footer: "フッター",
VideoBanner: "動画バナー",
VideoBannersAddTopSpace: "上方に空白を追加",
VideoBannersAddBottomSpace: "下方に空白を追加",
VideoBannersAnchorID: "アンカーID",
VideoBannersVideo: "動画",
VideoBannersBackgroundVideo: "背景動画",
VideoBannersMobileBackgroundVideo: "モバイル用背景動画",
VideoBannersVideoCover: "動画カバー",
VideoBannersMobileVideoCover: "モバイル用動画カバー",
VideoBannersHeading: "ヘディング",
VideoBannersPopupText: "ポップアップ用テキスト",
VideoBannersText: "テキスト",
VideoBannersLinkText: "リンクテキスト",
VideoBannersLink: "リンク",
Heading: "ヘディング",
HeadingsAddTopSpace: "上方に空白を追加",
HeadingsAddBottomSpace: "下方に空白を追加",
HeadingsAnchorID: "アンカーID",
HeadingsHeading: "ヘディング",
HeadingsFontColor: "フォント色",
HeadingsBackgroundColor: "背景色",
HeadingsLink: "リンク",
HeadingsLinkText: "リンクテキスト",
HeadingsLinkDisplayOption: "リンク表示オプション",
HeadingsText: "テキスト",
BrandGrid: "ブランドグリッド",
BrandGridsAddTopSpace: "上方に空白を追加",
BrandGridsAddBottomSpace: "下方に空白を追加",
BrandGridsAnchorID: "アンカーID",
BrandGridsBrands: "ブランド",
ListContent: "リストコンテンツ",
ListContentsAddTopSpace: "上方に空白を追加",
ListContentsAddBottomSpace: "下方に空白を追加",
ListContentsAnchorID: "アンカーID",
ListContentsBackgroundColor: "背景色",
ListContentsItems: "アイテム",
ListContentsLink: "リンク",
ListContentsLinkText: "リンクテキスト",
ListContentsLinkDisplayOption: "リンク表示オプション",
ImageContainer: "画像コンテナ",
ImageContainersAddTopSpace: "上方に空白を追加",
ImageContainersAddBottomSpace: "ボタン用空白追加",
ImageContainersAnchorID: "アンカーID",
ImageContainersBackgroundColor: "背景色",
ImageContainersTransitionBackgroundColor: "背景色変更",
ImageContainersImage: "画像",
Image: "画像",
InNumber: "数字",
InNumbersAddTopSpace: "上方に空白を追加",
InNumbersAddBottomSpace: "下方に空白を追加",
InNumbersAnchorID: "アンカーID",
InNumbersHeading: "ヘディング",
InNumbersItems: "アイテム",
InNumbers: "数字",
ContactForm: "お問合せフォーム",
ContactFormsAddTopSpace: "上方に空白を追加",
ContactFormsAddBottomSpace: "下方に空白を追加",
ContactFormsAnchorID: "アンカーID",
ContactFormsHeading: "ヘディング",
ContactFormsText: "テキスト",
ContactFormsSendButtonText: "送信ボタン用テキスト",
ContactFormsFormButtonText: "ウェブフォームボタン用テキスト",
ContactFormsMessagePlaceholder: "メッセージ",
ContactFormsNamePlaceholder: "名前",
ContactFormsEmailPlaceholder: "メールアドレス",
ContactFormsThankyouMessage: "サンキューメッセージ",
ContactFormsActionUrl: "アクションURL",
ContactFormsPrivacyPolicy: "プライバシーポリシー",
ActivityActionLogIn: "ログイン",
ActivityActionExtendSession: "セッション延長",
PagesPage: "ページ",
}
View Source
var Messages_zh_CN = &Messages{
FilterTabsAll: "全部",
FilterTabsHasUnreadNotes: "未读备注",
FilterTabsActive: "有效",
DemoTips: "请注意,数据库将每隔偶数小时重置一次。",
DemoUsernameLabel: "演示账户:",
DemoPasswordLabel: "演示密码:",
LoginProviderGoogleText: "使用Google登录",
LoginProviderMicrosoftText: "使用Microsoft登录",
LoginProviderGithubText: "使用Github登录",
OAuthCompleteInfoTitle: "请填写您的信息",
OAuthCompleteInfoPositionLabel: "职位(可选)",
OAuthCompleteInfoAgreeLabel: "订阅QOR5新闻(可选)",
OAuthCompleteInfoBackLabel: "返回登录",
Demo: "演示",
DBResetTipLabel: "数据库重置倒计时",
Name: "姓名",
Email: "邮箱",
Company: "公司",
Role: "角色",
Status: "状态",
ChangePassword: "修改密码",
LoginSessions: "登录会话",
}
View Source
var Messages_zh_CN_ModelsI18nModuleKey = &Messages_ModelsI18nModuleKey{
Posts: "帖子 示例",
PostsID: "ID",
PostsTitle: "标题",
PostsHeroImage: "主图",
PostsBody: "内容",
Example: "QOR5演示",
Settings: "SEO 设置",
Post: "帖子",
PostsBodyImage: "内容图片",
SeoPost: "帖子",
SeoVariableTitle: "标题",
SeoVariableSiteName: "站点名称",
QOR5Example: "QOR5 示例",
Roles: "权限管理",
Users: "用户管理",
PageBuilder: "页面管理菜单",
Pages: "页面管理",
SharedContainers: "公用组件",
DemoContainers: "示例组件",
Templates: "模板页面",
PageCategories: "目录管理",
ECManagement: "电子商务管理",
ECDashboard: "电子商务仪表盘",
Orders: "订单管理",
InputDemos: "表单 示例",
Products: "产品管理",
NestedFieldDemos: "嵌套表单 示例",
SiteManagement: "站点管理菜单",
SEO: "SEO 管理",
UserManagement: "用户管理菜单",
Profile: "个人页面",
FeaturedModelsManagement: "特色模块管理菜单",
Customers: "Customers 示例",
ListModels: "发布带排序及分页模块 示例",
MicrositeModels: "Microsite 示例",
Workers: "后台工作进程管理",
MediaLibrary: "媒体库",
PagesID: "ID",
PagesTitle: "标题",
PagesSlug: "Slug",
PagesLocale: "地区",
PagesNotes: "备注",
PagesDraftCount: "草稿数",
PagesPath: "路径",
PagesOnline: "在线",
PagesVersion: "版本",
PagesVersions: "版本",
PagesStartAt: "开始时间",
PagesEndAt: "结束时间",
PagesOption: "选项",
PagesLive: "发布状态",
Page: "Page",
PagesStatus: "状态",
PagesSchedule: "PagesSchedule",
PagesCategoryID: "PagesCategoryID",
PagesTemplateSelection: "PagesTemplateSelection",
PagesEditContainer: "PagesEditContainer",
WebHeader: "WebHeader",
WebHeadersColor: "WebHeadersColor",
Header: "Header",
Navigation: "Navigation",
Content: "Content",
WebFooter: "WebFooter",
WebFootersEnglishUrl: "WebFootersEnglishUrl",
WebFootersJapaneseUrl: "WebFootersJapaneseUrl",
Footer: "Footer",
VideoBanner: "VideoBanner",
VideoBannersAddTopSpace: "VideoBannersAddTopSpace",
VideoBannersAddBottomSpace: "VideoBannersAddBottomSpace",
VideoBannersAnchorID: "VideoBannersAnchorID",
VideoBannersVideo: "VideoBannersVideo",
VideoBannersBackgroundVideo: "VideoBannersBackgroundVideo",
VideoBannersMobileBackgroundVideo: "VideoBannersMobileBackgroundVideo",
VideoBannersVideoCover: "VideoBannersVideoCover",
VideoBannersMobileVideoCover: "VideoBannersMobileVideoCover",
VideoBannersHeading: "VideoBannersHeading",
VideoBannersPopupText: "VideoBannersPopupText",
VideoBannersText: "VideoBannersText",
VideoBannersLinkText: "VideoBannersLinkText",
VideoBannersLink: "VideoBannersLink",
Heading: "Heading",
HeadingsAddTopSpace: "HeadingsAddTopSpace",
HeadingsAddBottomSpace: "HeadingsAddBottomSpace",
HeadingsAnchorID: "HeadingsAnchorID",
HeadingsHeading: "HeadingsHeading",
HeadingsFontColor: "HeadingsFontColor",
HeadingsBackgroundColor: "HeadingsBackgroundColor",
HeadingsLink: "HeadingsLink",
HeadingsLinkText: "HeadingsLinkText",
HeadingsLinkDisplayOption: "HeadingsLinkDisplayOption",
HeadingsText: "HeadingsText",
BrandGrid: "BrandGrid",
BrandGridsAddTopSpace: "BrandGridsAddTopSpace",
BrandGridsAddBottomSpace: "BrandGridsAddBottomSpace",
BrandGridsAnchorID: "BrandGridsAnchorID",
BrandGridsBrands: "BrandGridsBrands",
ListContent: "ListContent",
ListContentsAddTopSpace: "ListContentsAddTopSpace",
ListContentsAddBottomSpace: "ListContentsAddBottomSpace",
ListContentsAnchorID: "ListContentsAnchorID",
ListContentsBackgroundColor: "ListContentsBackgroundColor",
ListContentsItems: "ListContentsItems",
ListContentsLink: "ListContentsLink",
ListContentsLinkText: "ListContentsLinkText",
ListContentsLinkDisplayOption: "ListContentsLinkDisplayOption",
ImageContainer: "ImageContainer",
ImageContainersAddTopSpace: "ImageContainersAddTopSpace",
ImageContainersAddBottomSpace: "ImageContainersAddBottomSpace",
ImageContainersAnchorID: "ImageContainersAnchorID",
ImageContainersBackgroundColor: "ImageContainersBackgroundColor",
ImageContainersTransitionBackgroundColor: "ImageContainersTransitionBackgroundColor",
ImageContainersImage: "ImageContainersImage",
Image: "Image",
InNumber: "InNumber",
InNumbersAddTopSpace: "InNumbersAddTopSpace",
InNumbersAddBottomSpace: "InNumbersAddBottomSpace",
InNumbersAnchorID: "InNumbersAnchorID",
InNumbersHeading: "InNumbersHeading",
InNumbersItems: "InNumbersItems",
InNumbers: "InNumbers",
ContactForm: "ContactForm",
ContactFormsAddTopSpace: "ContactFormsAddTopSpace",
ContactFormsAddBottomSpace: "ContactFormsAddBottomSpace",
ContactFormsAnchorID: "ContactFormsAnchorID",
ContactFormsHeading: "ContactFormsHeading",
ContactFormsText: "ContactFormsText",
ContactFormsSendButtonText: "ContactFormsSendButtonText",
ContactFormsFormButtonText: "ContactFormsFormButtonText",
ContactFormsMessagePlaceholder: "ContactFormsMessagePlaceholder",
ContactFormsNamePlaceholder: "ContactFormsNamePlaceholder",
ContactFormsEmailPlaceholder: "ContactFormsEmailPlaceholder",
ContactFormsThankyouMessage: "ContactFormsThankyouMessage",
ContactFormsActionUrl: "ContactFormsActionUrl",
ContactFormsPrivacyPolicy: "ContactFormsPrivacyPolicy",
ActivityActionLogIn: "登录",
ActivityActionExtendSession: "延长会话",
PagesPage: "Page",
}
View Source
var MicroSitesExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.micro_sites (id, created_at, updated_at, deleted_at, status, online_url, scheduled_start_at, scheduled_end_at, actual_start_at, actual_end_at, version, version_name, parent_version, name, description, pre_path, package, files_list, unix_key) VALUES (1, '2023-01-05 08:49:45.695000 +00:00', '2023-01-05 08:49:45.695000 +00:00', null, 'draft', '', null, null, null, null, '2023-01-05-v01', '', '', 'Demo', '', '', '{"FileName":"","Url":""}', '', ''); `, []string{"micro_sites"}))
View Source
var NestedFieldExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.customers (id, name) VALUES (1, 'Demo'); INSERT INTO public.addresses (id, customer_id, street, home_image, updated_at, created_at, status, online_url) VALUES (1, 1, 'Tokyo KDX Toranomon 1Chome Building 11F 1-10-5 Toranomon Minato-ku, Tokyo 〒105-0001', null, '2023-01-05 09:00:10.017949 +00:00', '2023-01-05 09:00:10.017949 +00:00', 'draft', ''); INSERT INTO public.addresses (id, customer_id, street, home_image, updated_at, created_at, status, online_url) VALUES (2, 1, 'Hangzhou Building #14 U3-2, No. 166 Lishui Rd, Gongshu Hangzhou, Zhejiang', null, '2023-01-05 09:00:10.017949 +00:00', '2023-01-05 09:00:10.017949 +00:00', 'draft', ''); INSERT INTO public.addresses (id, customer_id, street, home_image, updated_at, created_at, status, online_url) VALUES (3, 1, 'Canberra 73/30 Lonsdale Street, Braddon Canberra, ACT', null, '2023-01-05 09:00:10.017949 +00:00', '2023-01-05 09:00:10.017949 +00:00', 'draft', ''); INSERT INTO public.membership_cards (id, customer_id, number, valid_before) VALUES (1, 1, 0, null); `, []string{"customers", "addresses", "membership_cards"}))
View Source
var OrdersExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.orders (id, created_at, updated_at, deleted_at, source, status, delivery_method, payment_method, confirmed_at, order_items) VALUES (4, '2022-10-13 10:41:47.425000 +00:00', null, null, 'APP', 'Pending', 'TableDelivery', 'PayPay', '2022-11-07 12:12:52.696000 +00:00', null); INSERT INTO public.orders (id, created_at, updated_at, deleted_at, source, status, delivery_method, payment_method, confirmed_at, order_items) VALUES (6, '2022-10-17 10:26:51.856000 +00:00', null, null, 'WEB', 'Authorised', 'TableDelivery', 'PayPay', '2022-11-07 12:12:56.180000 +00:00', null); INSERT INTO public.orders (id, created_at, updated_at, deleted_at, source, status, delivery_method, payment_method, confirmed_at, order_items) VALUES (5, '2022-10-13 10:42:11.414000 +00:00', null, null, 'APP', 'Cancelled', 'TableDelivery', 'PayPay', '2022-11-07 12:12:55.410000 +00:00', null); INSERT INTO public.orders (id, created_at, updated_at, deleted_at, source, status, delivery_method, payment_method, confirmed_at, order_items) VALUES (8, '2022-11-07 12:19:59.612000 +00:00', null, null, 'APP', 'Sending', 'TableDelivery', 'CreditCard', '2022-11-07 12:20:20.468000 +00:00', null); INSERT INTO public.orders (id, created_at, updated_at, deleted_at, source, status, delivery_method, payment_method, confirmed_at, order_items) VALUES (9, '2022-11-07 12:20:00.352000 +00:00', null, null, 'APP', 'CheckedIn', 'TableDelivery', 'CreditCard', '2022-11-07 12:20:21.212000 +00:00', null); INSERT INTO public.orders (id, created_at, updated_at, deleted_at, source, status, delivery_method, payment_method, confirmed_at, order_items) VALUES (11, '2022-11-07 12:21:03.553000 +00:00', null, null, 'APP', 'Sending', 'TableDelivery', 'CreditCard', '2022-11-07 12:20:59.174000 +00:00', null); INSERT INTO public.orders (id, created_at, updated_at, deleted_at, source, status, delivery_method, payment_method, confirmed_at, order_items) VALUES (7, '2022-11-07 12:19:57.671000 +00:00', null, null, 'APP', 'Sending', 'TableDelivery', 'CreditCard', '2022-11-07 12:20:19.556000 +00:00', null); INSERT INTO public.orders (id, created_at, updated_at, deleted_at, source, status, delivery_method, payment_method, confirmed_at, order_items) VALUES (10, '2022-11-07 12:21:03.553000 +00:00', null, null, 'APP', 'Authorised', 'TableDelivery', 'CreditCard', '2022-11-07 12:20:59.174000 +00:00', null); `, []string{"orders"}))
View Source
var PageBuilderExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.container_contact_form (id, add_top_space, add_bottom_space, anchor_id, heading, text, send_button_text, form_button_text, message_placeholder, name_placeholder, email_placeholder, thankyou_message, action_url, privacy_policy) VALUES (1, true, true, '', 'Get in touch', 'Whatever the challenge, we want to help you solve it.', 'Send', 'Write us', 'Your message', 'Name', 'Email', 'Thank you for getting in touch, we will get back to you soon.', '', 'I have read and agree to the <a href="/privacy-policy/" target="_blank">privacy policy</a>.'); INSERT INTO public.container_footers (id, english_url, japanese_url) VALUES (1, '', ''); INSERT INTO public.container_headers (id, color) VALUES (1, ''); INSERT INTO public.container_headers (id, color) VALUES (2, 'black'); INSERT INTO public.container_headings (id, add_top_space, add_bottom_space, anchor_id, heading, font_color, background_color, link, link_text, link_display_option, text) VALUES (1, false, false, '', 'Trusted by top brands', 'blue', 'white', '/projects/', 'LEARN MORE ABOUT OUR PROJECTS', 'all', '<p>We make your goals, our goals. Our innovative systems have a proven track record, delivering standout results for top brands. And with our expert team, we form lasting partnerships for the long-term. I don''t like this edit page</p>'); INSERT INTO public.container_headings (id, add_top_space, add_bottom_space, anchor_id, heading, font_color, background_color, link, link_text, link_display_option, text) VALUES (2, true, false, '', 'What we do', 'blue', 'grey', '/what-we-do/', 'LEARN MORE', 'all', '<p><strong>From end-to-end solutions to consulting, we draw on decades of expertise to solve new challenges in e-commerce, content management, and digital innovation.</strong></p>'); INSERT INTO public.container_headings (id, add_top_space, add_bottom_space, anchor_id, heading, font_color, background_color, link, link_text, link_display_option, text) VALUES (3, false, false, '', 'Why clients choose us', 'blue', 'white', '/why-clients-choose-us/', 'LEARN MORE', 'desktop', ''); INSERT INTO public.container_images (id, add_top_space, add_bottom_space, anchor_id, image, background_color, transition_background_color) VALUES (1, false, false, '', '{"ID":4,"Url":"https://cdn.qor5.theplant-dev.com/system/media_libraries/4/file.jpg","VideoLink":"","FileName":"file.20211006224452.jpg","Description":"","FileSizes":{"@qor_preview":19981,"default":257343,"original":257343},"Width":2880,"Height":720}', '', ''); INSERT INTO public.container_images (id, add_top_space, add_bottom_space, anchor_id, image, background_color, transition_background_color) VALUES (2, false, true, '', '{"ID":9,"Url":"https://cdn.qor5.theplant-dev.com/system/media_libraries/9/file.png","VideoLink":"","FileName":"file.png","Description":"","FileSizes":{"@qor_preview":41622,"default":227103,"original":227103},"Width":1252,"Height":658}', 'grey', 'white'); INSERT INTO public.container_video_banners (id, add_top_space, add_bottom_space, anchor_id, video, background_video, mobile_background_video, video_cover, mobile_video_cover, heading, popup_text, text, link_text, link) VALUES (1, false, false, '', '{"ID":14,"Url":"https://cdn.qor5.theplant-dev.com/system/media_libraries/14/file.mov","VideoLink":"","FileName":"pc-mv.mov","Description":""}', '{"ID":14,"Url":"https://cdn.qor5.theplant-dev.com/system/media_libraries/14/file.mov","VideoLink":"","FileName":"pc-mv.mov","Description":""}', '{"ID":11,"Url":"https://cdn.qor5.theplant-dev.com/system/media_libraries/11/file.mov","VideoLink":"","FileName":"mob-mv.mov","Description":""}', '{"ID":15,"Url":"https://cdn.qor5.theplant-dev.com/system/media_libraries/15/file.jpg","VideoLink":"","FileName":"pc.jpg","Description":"","FileSizes":{"@qor_preview":33019,"default":646542,"original":646542},"Width":2560,"Height":1440}', '{"ID":12,"Url":"https://cdn.qor5.theplant-dev.com/system/media_libraries/12/file.jpg","VideoLink":"","FileName":"mob.jpg","Description":"","FileSizes":{"@qor_preview":33140,"default":465542,"original":465542},"Width":1536,"Height":2876}', e'Enterprise systems. Startup speed.', '', 'Discover made-to-measure enterprise solutions combining the agility of a startup with seamless performance at scale. The perfect fit, delivered fast.', 'get in touch', '/contact/'); INSERT INTO public.page_builder_categories (id, created_at, updated_at, deleted_at, name, path, description, locale_code) VALUES (1, '2023-03-03 06:21:07.782515 +00:00', '2023-03-03 06:21:07.782515 +00:00', null, 'Product', '/product', '', 'International'); INSERT INTO public.page_builder_categories (id, created_at, updated_at, deleted_at, name, path, description, locale_code) VALUES (2, '2023-03-03 06:21:15.410972 +00:00', '2023-03-03 06:21:15.410972 +00:00', null, 'Order', '/order', '', 'International'); INSERT INTO public.page_builder_categories (id, created_at, updated_at, deleted_at, name, path, description, locale_code) VALUES (3, '2023-03-03 06:21:31.605906 +00:00', '2023-03-03 06:21:31.605906 +00:00', null, 'Food', '/product/food', '', 'International'); INSERT INTO public.page_builder_categories (id, created_at, updated_at, deleted_at, name, path, description, locale_code) VALUES (1, '2023-03-03 06:21:07.782515 +00:00', '2023-03-03 06:21:07.782515 +00:00', null, 'Product', '/product', '', 'China'); INSERT INTO public.page_builder_categories (id, created_at, updated_at, deleted_at, name, path, description, locale_code) VALUES (1, '2023-03-03 06:21:07.782515 +00:00', '2023-03-03 06:21:07.782515 +00:00', null, 'Product', '/product', '', 'Japan'); INSERT INTO public.page_builder_containers (id, created_at, updated_at, deleted_at, page_id, page_version, model_name, model_id, display_order, shared, hidden, display_name, locale_code, localize_from_model_id) VALUES (1, '2023-03-03 06:20:48.334178 +00:00', '2023-03-03 06:20:48.334178 +00:00', null, 1, 'tpl', 'Image', 1, 1, false, false, 'Image', 'International', 0); INSERT INTO public.page_builder_containers (id, created_at, updated_at, deleted_at, page_id, page_version, model_name, model_id, display_order, shared, hidden, display_name, locale_code, localize_from_model_id) VALUES (2, '2023-03-03 06:21:40.233601 +00:00', '2023-03-03 06:21:40.233601 +00:00', null, 1, '2023-03-03-v01', 'Header', 1, 1, false, false, 'Header', 'International', 0); INSERT INTO public.page_builder_containers (id, created_at, updated_at, deleted_at, page_id, page_version, model_name, model_id, display_order, shared, hidden, display_name, locale_code, localize_from_model_id) VALUES (3, '2023-03-03 06:21:42.275791 +00:00', '2023-03-03 06:21:42.275791 +00:00', '2023-03-03 06:21:54.868151 +00:00', 1, '2023-03-03-v01', 'Header', 2, 2, false, false, 'Header', 'International', 0); INSERT INTO public.page_builder_containers (id, created_at, updated_at, deleted_at, page_id, page_version, model_name, model_id, display_order, shared, hidden, display_name, locale_code, localize_from_model_id) VALUES (4, '2023-03-03 06:21:58.674323 +00:00', '2023-03-03 06:21:58.674323 +00:00', null, 1, '2023-03-03-v01', 'Video Banner', 1, 2, false, false, 'Video Banner', 'International', 0); INSERT INTO public.page_builder_containers (id, created_at, updated_at, deleted_at, page_id, page_version, model_name, model_id, display_order, shared, hidden, display_name, locale_code, localize_from_model_id) VALUES (5, '2023-03-03 06:22:46.641959 +00:00', '2023-03-03 06:22:46.641959 +00:00', null, 1, '2023-03-03-v01', 'Heading', 1, 3, false, false, 'Heading', 'International', 0); INSERT INTO public.page_builder_containers (id, created_at, updated_at, deleted_at, page_id, page_version, model_name, model_id, display_order, shared, hidden, display_name, locale_code, localize_from_model_id) VALUES (7, '2023-03-03 06:24:15.676928 +00:00', '2023-03-03 06:24:15.676928 +00:00', null, 1, '2023-03-03-v01', 'Heading', 2, 5, false, false, 'Heading', 'International', 0); INSERT INTO public.page_builder_containers (id, created_at, updated_at, deleted_at, page_id, page_version, model_name, model_id, display_order, shared, hidden, display_name, locale_code, localize_from_model_id) VALUES (9, '2023-03-03 06:25:41.972811 +00:00', '2023-03-03 06:25:41.972811 +00:00', null, 1, '2023-03-03-v01', 'Image', 2, 7, false, false, 'Image', 'International', 0); INSERT INTO public.page_builder_containers (id, created_at, updated_at, deleted_at, page_id, page_version, model_name, model_id, display_order, shared, hidden, display_name, locale_code, localize_from_model_id) VALUES (10, '2023-03-03 06:25:55.874078 +00:00', '2023-03-03 06:25:55.874078 +00:00', null, 1, '2023-03-03-v01', 'Heading', 3, 8, false, false, 'Heading', 'International', 0); INSERT INTO public.page_builder_containers (id, created_at, updated_at, deleted_at, page_id, page_version, model_name, model_id, display_order, shared, hidden, display_name, locale_code, localize_from_model_id) VALUES (13, '2023-03-03 06:27:54.022522 +00:00', '2023-03-03 06:28:27.625631 +00:00', null, 1, '2023-03-03-v01', 'ContactForm', 1, 11, true, false, 'ContactForm', 'International', 0); INSERT INTO public.page_builder_containers (id, created_at, updated_at, deleted_at, page_id, page_version, model_name, model_id, display_order, shared, hidden, display_name, locale_code, localize_from_model_id) VALUES (14, '2023-03-03 06:28:30.305332 +00:00', '2023-03-03 06:28:30.305332 +00:00', null, 1, '2023-03-03-v01', 'Footer', 1, 12, false, false, 'Footer', 'International', 0); INSERT INTO public.page_builder_pages (id, created_at, updated_at, deleted_at, title, slug, category_id, seo, status, online_url, scheduled_start_at, scheduled_end_at, actual_start_at, actual_end_at, version, version_name, parent_version, locale_code) VALUES (1, '2024-05-23 12:45:15.163414 +00:00', '2024-05-23 12:45:15.163414 +00:00', null, 'The Plant Homepage', '/', 0, '{"OpenGraphImageFromMediaLibrary":{"ID":0,"Url":"","VideoLink":"","FileName":"","Description":""}}', 'draft', '', null, null, null, null, '2023-03-03-v01', '2023-03-03-v01', '', 'International'); INSERT INTO public.page_builder_templates (id, created_at, updated_at, deleted_at, name, description, locale_code) VALUES (1, '2023-03-03 06:20:43.281780 +00:00', '2023-03-03 06:20:43.281780 +00:00', null, 'Demo', '', 'International'); `, []string{ "container_contact_form", "container_footers", "container_headers", "container_headings", "container_images", "container_video_banners", "page_builder_categories", "page_builder_containers", "page_builder_pages", "page_builder_templates", }))
View Source
var PostsExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.posts (id, created_at, updated_at, deleted_at, title, title_with_slug, seo, body, hero_image, body_image, status, online_url, scheduled_start_at, scheduled_end_at, actual_start_at, actual_end_at, version, version_name, parent_version) VALUES (1, '2023-01-05 06:23:55.553000 +00:00', '2023-01-05 06:23:55.553000 +00:00', null, 'Demo', 'demo', '{"Title":"","Description":"","Keywords":"","OpenGraphURL":"","OpenGraphType":"","OpenGraphImageURL":"","OpenGraphImageFromMediaLibrary":{"ID":0,"Url":"","VideoLink":"","FileName":"","Description":""},"OpenGraphMetadata":null,"EnabledCustomize":false}', '<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci. Aenean nec lorem. In porttitor. Donec laoreet nonummy augue. Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend. Ut nonummy.</p>', '{"ID":1,"Url":"//qor5-test.s3.ap-northeast-1.amazonaws.com/system/media_libraries/1/file.jpeg","VideoLink":"","FileName":"demo image.jpeg","Description":"","FileSizes":{"@qor_preview":8917,"default":326350,"main":94913,"og":123973,"original":326350,"thumb":21199,"twitter-large":117784,"twitter-small":77615},"Width":750,"Height":1000}', null, 'draft', '', null, null, null, null, '2023-01-05-v01', '', ''); `, []string{"posts"}))
View Source
var ProductsExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.products (id, created_at, updated_at, deleted_at, code, name, price, image, status, online_url, scheduled_start_at, scheduled_end_at, actual_start_at, actual_end_at, version, version_name, parent_version) VALUES (1, '2023-01-05 08:55:38.167000 +00:00', '2023-01-05 08:55:38.167000 +00:00', null, '001', 'cocacola', 5, '{"ID":34,"Url":"//qor5-test.s3.ap-northeast-1.amazonaws.com/system/media_libraries/34/file.png","VideoLink":"","FileName":"3110-cocacola.png","Description":"","FileSizes":{"@qor_preview":35552,"default":18409,"original":18409,"thumb":11169},"Width":460,"Height":267}', 'draft', '', null, null, null, null, '2023-01-05-v01', '', ''); `, []string{"products"}))
View Source
var PublishStorage oss.StorageInterface = filesystem.New("publish")
PublishStorage is used to storage static pages published by page builder.
View Source
var WorkersExampleData = gofixtures.Data(gofixtures.Sql(` INSERT INTO public.qor_jobs (id, created_at, updated_at, deleted_at, job, status) VALUES (1, '2021-11-15 05:38:25.330081 +00:00', '2021-11-15 05:38:25.514704 +00:00', null, 'noArgJob', 'done'); INSERT INTO public.qor_jobs (id, created_at, updated_at, deleted_at, job, status) VALUES (34, '2022-10-08 03:15:48.245812 +00:00', '2022-10-14 07:16:05.216590 +00:00', null, 'scheduleJob', 'done'); INSERT INTO public.qor_jobs (id, created_at, updated_at, deleted_at, job, status) VALUES (2, '2021-12-07 13:31:07.383331 +00:00', '2021-12-07 13:31:12.457370 +00:00', null, 'progressTextJob', 'done'); INSERT INTO public.qor_jobs (id, created_at, updated_at, deleted_at, job, status) VALUES (3, '2022-01-10 11:51:44.495127 +00:00', '2022-01-10 11:51:44.622906 +00:00', null, 'scheduleJob', 'done'); INSERT INTO public.qor_jobs (id, created_at, updated_at, deleted_at, job, status) VALUES (67, '2022-10-20 02:38:34.139332 +00:00', '2022-10-20 02:38:39.247979 +00:00', null, 'errorJob', 'exception'); INSERT INTO public.qor_jobs (id, created_at, updated_at, deleted_at, job, status) VALUES (68, '2022-10-20 02:46:25.042928 +00:00', '2022-10-20 02:46:30.094506 +00:00', null, 'panicJob', 'exception'); INSERT INTO public.qor_job_instances (id, created_at, updated_at, deleted_at, qor_job_id, operator, job, status, args, context, progress, progress_text) VALUES (1, '2021-11-15 05:38:25.337004 +00:00', '2021-11-15 05:38:25.517271 +00:00', null, 1, null, 'noArgJob', 'done', 'null', null, 100, ''); INSERT INTO public.qor_job_instances (id, created_at, updated_at, deleted_at, qor_job_id, operator, job, status, args, context, progress, progress_text) VALUES (34, '2022-10-08 03:15:48.270563 +00:00', '2022-10-14 07:16:05.224650 +00:00', null, 34, '', 'scheduleJob', 'done', '{"F1":"f","ScheduleTime":"2022-10-14T07:16:00Z"}', '{"URL":"https://example.qor5.theplant-dev.com/admin/workers"}', 100, ''); INSERT INTO public.qor_job_instances (id, created_at, updated_at, deleted_at, qor_job_id, operator, job, status, args, context, progress, progress_text) VALUES (2, '2021-12-07 13:31:07.389003 +00:00', '2021-12-07 13:31:12.460350 +00:00', null, 2, null, 'progressTextJob', 'done', 'null', null, 100, '<a href="https://www.google.com">Download users</a>'); INSERT INTO public.qor_job_instances (id, created_at, updated_at, deleted_at, qor_job_id, operator, job, status, args, context, progress, progress_text) VALUES (3, '2022-01-10 11:51:44.506654 +00:00', '2022-01-10 11:51:44.631661 +00:00', null, 3, null, 'scheduleJob', 'done', '{"F1":"fda","ScheduleTime":null}', null, 100, ''); INSERT INTO public.qor_job_instances (id, created_at, updated_at, deleted_at, qor_job_id, operator, job, status, args, context, progress, progress_text) VALUES (67, '2022-10-20 02:38:34.152825 +00:00', '2022-10-20 02:38:39.251747 +00:00', null, 67, '', 'errorJob', 'exception', 'null', '{"URL":"https://example.qor5.theplant-dev.com/admin/workers"}', 0, 'imError'); INSERT INTO public.qor_job_instances (id, created_at, updated_at, deleted_at, qor_job_id, operator, job, status, args, context, progress, progress_text) VALUES (68, '2022-10-20 02:46:25.047450 +00:00', '2022-10-20 02:46:30.102953 +00:00', null, 68, '', 'panicJob', 'exception', 'null', '{"URL":"https://example.qor5.theplant-dev.com/admin/workers"}', 0, 'letsPanic'); `, []string{"qor_jobs", "qor_job_instances"}))
Functions ¶
func Dashboard ¶
func Dashboard() h.HTMLComponent
func DemoCaseCheckBox ¶
func DemoCaseCheckBox(obj interface{}, editField, field, label string) *vx.VXCheckboxBuilder
func DemoCaseDatepicker ¶
func DemoCaseDatepicker(obj interface{}, editField, field, label string, vErr web.ValidationErrors) *vx.VXDatePickerBuilder
vx library Compoents
func DemoCaseRangePicker ¶
func DemoCaseRangePicker(obj interface{}, editField, field, label string, vErr web.ValidationErrors) *vx.VXRangePickerBuilder
func DemoCaseSelect ¶
func DemoCaseSelect(obj interface{}, editField, field, label string, vErr web.ValidationErrors, items interface{}) *vx.VXSelectBuilder
func DemoCaseTextField ¶
func DemoCaseTextField(obj interface{}, editField, field, label string, vErr web.ValidationErrors) *vx.VXFieldBuilder
func ErasePublicUsersData ¶
ErasePublicUsersData erase all non-admin users but preserve the following three users qor@the-plant.com demo-editor@the-plant.com demo-viewer@the-plant.com
func GetColoredStatus ¶
func GetColoredStatus(status models.OrderStatus) h.HTMLComponent
func GetNonIgnoredTableNames ¶
GetNonIgnoredTableNames returns all table names except the ignored ones.
Types ¶
type CheckboxData ¶
type CheckboxData struct {
Checkbox bool
}
func (*CheckboxData) Scan ¶
func (c *CheckboxData) Scan(value interface{}) error
type Config ¶
func TestHandlerComplex ¶
func (*Config) GetLoginSessionBuilder ¶
func (c *Config) GetLoginSessionBuilder() *plogin.SessionBuilder
func (*Config) GetPresetsBuilder ¶
type ConfigOption ¶
type ConfigOption func(opts *configOptions)
func WithStorageWrapper ¶
func WithStorageWrapper(fn func(oss.StorageInterface) oss.StorageInterface) ConfigOption
type DataTableHeader ¶
type DatepickerData ¶
type DatepickerData struct { Date int64 DateTime int64 DateRange []int64 DateRangeNeedConfirm []int64 }
func (*DatepickerData) Scan ¶
func (c *DatepickerData) Scan(value interface{}) error
type DemoCase ¶
type DemoCase struct { gorm.Model Name string FieldData FieldData `gorm:"type:json"` FieldTextareaData FieldTextareaData `gorm:"type:json"` FieldPasswordData FieldPasswordData `gorm:"type:json"` FieldNumberData FieldNumberData `gorm:"type:json"` SelectData SelectData `gorm:"type:json"` CheckboxData CheckboxData `gorm:"type:json"` DatepickerData DatepickerData `gorm:"type:json"` PaginatorData PaginationData `gorm:"type:json"` TabsData TabsData `gorm:"type:json"` }
type DemoSelectItem ¶
type ECDashboard ¶
type ECDashboard struct{}
type FieldNumberData ¶
func (*FieldNumberData) Scan ¶
func (c *FieldNumberData) Scan(value interface{}) error
type FieldPasswordData ¶
func (*FieldPasswordData) Scan ¶
func (c *FieldPasswordData) Scan(value interface{}) error
type FieldTextareaData ¶
func (*FieldTextareaData) Scan ¶
func (c *FieldTextareaData) Scan(value interface{}) error
type Messages ¶
type Messages struct { FilterTabsAll string FilterTabsHasUnreadNotes string FilterTabsActive string DemoTips string DemoUsernameLabel string DemoPasswordLabel string LoginProviderGoogleText string LoginProviderMicrosoftText string LoginProviderGithubText string OAuthCompleteInfoTitle string OAuthCompleteInfoPositionLabel string OAuthCompleteInfoAgreeLabel string OAuthCompleteInfoBackLabel string Demo string DBResetTipLabel string Name string Email string Company string Role string Status string ChangePassword string LoginSessions string }
type Messages_ModelsI18nModuleKey ¶
type Messages_ModelsI18nModuleKey struct { QOR5Example string Roles string Users string Posts string PostsID string PostsTitle string PostsHeroImage string PostsBody string Example string Settings string Post string PostsBodyImage string SeoPost string SeoVariableTitle string SeoVariableSiteName string PageBuilder string Pages string DemoContainers string Templates string PageCategories string ECManagement string ECDashboard string Orders string InputDemos string Products string NestedFieldDemos string SiteManagement string SEO string UserManagement string Profile string FeaturedModelsManagement string Customers string ListModels string MicrositeModels string Workers string MediaLibrary string PagesID string PagesTitle string PagesSlug string PagesLocale string PagesNotes string PagesDraftCount string PagesPath string PagesOnline string PagesVersion string PagesVersions string PagesStartAt string PagesEndAt string PagesOption string PagesLive string Page string PagesStatus string PagesSchedule string PagesCategoryID string PagesTemplateSelection string PagesEditContainer string WebHeader string WebHeadersColor string Header string Content string VideoBanner string VideoBannersAddTopSpace string VideoBannersAddBottomSpace string VideoBannersAnchorID string VideoBannersVideo string VideoBannersBackgroundVideo string VideoBannersMobileBackgroundVideo string VideoBannersVideoCover string VideoBannersMobileVideoCover string VideoBannersHeading string VideoBannersPopupText string VideoBannersText string VideoBannersLinkText string VideoBannersLink string Heading string HeadingsAddTopSpace string HeadingsAddBottomSpace string HeadingsAnchorID string HeadingsHeading string HeadingsFontColor string HeadingsBackgroundColor string HeadingsLink string HeadingsLinkText string HeadingsLinkDisplayOption string HeadingsText string BrandGrid string BrandGridsAddTopSpace string BrandGridsAddBottomSpace string BrandGridsAnchorID string BrandGridsBrands string ListContent string ListContentsAddTopSpace string ListContentsAddBottomSpace string ListContentsAnchorID string ListContentsBackgroundColor string ListContentsItems string ListContentsLink string ListContentsLinkText string ListContentsLinkDisplayOption string ImageContainer string ImageContainersAddTopSpace string ImageContainersAddBottomSpace string ImageContainersAnchorID string ImageContainersBackgroundColor string ImageContainersTransitionBackgroundColor string ImageContainersImage string Image string InNumber string InNumbersAddTopSpace string InNumbersAddBottomSpace string InNumbersAnchorID string InNumbersHeading string InNumbersItems string InNumbers string ContactForm string ContactFormsAddTopSpace string ContactFormsAddBottomSpace string ContactFormsAnchorID string ContactFormsHeading string ContactFormsText string ContactFormsSendButtonText string ContactFormsFormButtonText string ContactFormsMessagePlaceholder string ContactFormsNamePlaceholder string ContactFormsEmailPlaceholder string ContactFormsThankyouMessage string ContactFormsActionUrl string ContactFormsPrivacyPolicy string ActivityActionLogIn string ActivityActionExtendSession string PagesPage string }
type PaginationData ¶
type PaginationData struct {
Current int
}
func (*PaginationData) Scan ¶
func (c *PaginationData) Scan(value interface{}) error
type SelectData ¶
func (*SelectData) Scan ¶
func (c *SelectData) Scan(value interface{}) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.