8000 Fix remove ps by zhangshanwen · Pull Request #963 · qor5/admin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix remove ps #963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 172 commits into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
2fe226d
Merge branch 'login_screen' into kak-fix-specific
molon Nov 12, 2024
a7d0305
Merge branch 'login_screen' into kak-fix-specific
molon Nov 14, 2024
98934d8
Merge branch 'login_screen' into kak-fix-specific
molon Nov 15, 2024
6d3a6cc
Merge branch 'main' into kak-fix-specific
molon Nov 21, 2024
0800a5d
Merge branch 'activity-scope-perm' into kak-fix-specific
molon Dec 4, 2024
135e4bc
upgrade imaging
zhangshanwen Dec 4, 2024
2cb23ab
mod tidy
zhangshanwen Dec 4, 2024
69023b1
fix message show repetition when click menu;fix section save success…
zhangshanwen Nov 13, 2024
c2a2b24
Pagebuilder Editor Preview add PerGet
zhangshanwen Nov 15, 2024
f008234
fix preview permission
zhangshanwen Nov 18, 2024
9af9481
style: format code with Gofumpt
deepsource-autofix[bot] Nov 18, 2024
a335073
fix media error messages;upgrade jwt
zhangshanwen Nov 18, 2024
a42e507
section validate event add editing validator with same as Save event
zhangshanwen Nov 19, 2024
675204a
fix post auto sync change form validate not view
zhangshanwen Nov 19, 2024
a48675c
fix add section data change init script in viewComponent
zhangshanwen Nov 19, 2024
01e6d52
fix pagebuilder oveflow width to scroll;fix editor container can clic…
zhangshanwen Nov 25, 2024
06b38dc
fix update iframe keep scroll
zhangshanwen Nov 26, 2024
5578ace
fix ReloadRenderPageOrTemplateEvent wrap
zhangshanwen Nov 26, 2024
f25cefc
style: format code with Gofumpt
deepsource-autofix[bot] Nov 26, 2024
cfe9bb0
fix media preview card add click will be covered shadow
zhangshanwen Nov 28, 2024
69180fe
fix init pageBuilderContentScroll
zhangshanwen Dec 2, 2024
3a12c94
seo OpenGraphInformation empty preview tips
zhangshanwen Dec 3, 2024
762bb6d
fix seo use Customize, Default Global OpenGraphImage logic;fix QorSE…
zhangshanwen Dec 4, 2024
8f702cd
style: format code with Gofumpt
deepsource-autofix[bot] Dec 4, 2024
f41987b
update go.mod
zhangshanwen Dec 5, 2024
2de1bbf
upgrade x
zhangshanwen Dec 5, 2024
c8669a5
remove autoSaveReload;add container disabled before iframe load
zhangshanwen Dec 5, 2024
8a48813
fix media page icon
zhangshanwen Dec 5, 2024
2b28a76
fix update ReloadRenderPageOrTemplateBody
zhangshanwen Dec 9, 2024
424675e
upgrade x
zhangshanwen Dec 10, 2024
65a6c90
upgrade x
zhangshanwen Dec 10, 2024
517da1d
fix preview add container to iframe
zhangshanwen Dec 11, 2024
2ac7caa
upgrade x to master
zhangshanwen Dec 11, 2024
8139a0c
style: format code with Gofumpt
deepsource-autofix[bot] Dec 11, 2024
755ebfc
remove go-clone
zhangshanwen Dec 11, 2024
80bbe46
replace %s to %q
zhangshanwen Dec 11, 2024
455d126
listing: Fix unexpected behavior caused by unexpected per_page
molon Dec 11, 2024
c5ad363
fix tests
molon Dec 11, 2024
1952879
fix password strength meter space
molon Dec 12, 2024
e84f554
Merge branch 'activity-more-info-redirect' into kak-fix-specific
molon Dec 12, 2024
6239a8e
Merge remote-tracking branch 'origin/main' into kak-fix-specific
molon Dec 13, 2024
e79c994
add image URL Copy idot;lazySetterFunc add ValidationErrors
zhangshanwen Dec 9, 2024
fc28963
fix adjust
zhangshanwen Dec 9, 2024
9707043
fix merge
zhangshanwen Dec 9, 2024
0710601
style: format code with Gofumpt
deepsource-autofix[bot] Dec 10, 2024
de85d51
fix media has http prefix url
zhangshanwen Dec 10, 2024
50e4a6f
fix http prefix url
zhangshanwen Dec 10, 2024
863be09
upgrade x
zhangshanwen Dec 11, 2024
a4b7b58
Unmarshal has GlobalErrors return
zhangshanwen Dec 11, 2024
96e9a7b
rename vErr1 to vErrSetter;fix validate set error message
zhangshanwen Dec 11, 2024
9d05b81
fix not __currentValidateKeys
zhangshanwen Dec 11, 2024
0a17f27
fix update setter
zhangshanwen Dec 11, 2024
da406a5
fix section setter field error
zhangshanwen Dec 12, 2024
fa48ff2
rebase main
zhangshanwen Dec 12, 2024
0028b86
remove validate updating locked
zhangshanwen Dec 12, 2024
9c7a4b1
fix merge
zhangshanwen Dec 13, 2024
9e095dd
Merge branch 'fix-img-url-copy' into kak-fix-specific
zhangshanwen Dec 13, 2024
873df13
get x branch kak-fix-specific
zhangshanwen Dec 13, 2024
1cf004d
fix merge
zhangshanwen Dec 13, 2024
ec1c0e5
Merge branch 'fix-img-url-copy' into kak-fix-specific
zhangshanwen Dec 13, 2024
c3d5198
fix template,media pagination;page editor add background
zhangshanwen Dec 13, 2024
2970c46
fix pageination
zhangshanwen Dec 13, 2024
12c1a48
media options pushstate
zhangshanwen Dec 13, 2024
e3bf2f4
upgrade x
zhangshanwen Dec 13, 2024
1b98e1d
restore change device event
zhangshanwen Dec 16, 2024
7198eef
style: format code with Gofumpt
deepsource-autofix[bot] Dec 16, 2024
a77b0cf
Revert "restore change device event"
zhangshanwen Dec 16, 2024
0bb7e31
fix image no height;fix change device paramContainerDataID error
zhangshanwen Dec 16, 2024
b5dd568
cropper add updated time for update img URL;fix field no form key error
zhangshanwen Dec 17, 2024
9870755
add image URL Copy idot;lazySetterFunc add ValidationErrors
zhangshanwen Dec 9, 2024
17edb41
fix adjust
zhangshanwen Dec 9, 2024
9e2ff30
fix merge
zhangshanwen Dec 9, 2024
f4ea3ef
style: format code with Gofumpt
deepsource-autofix[bot] Dec 10, 2024
5251650
fix media has http prefix url
zhangshanwen Dec 10, 2024
436ff25
fix http prefix url
zhangshanwen Dec 10, 2024
f9bf406
upgrade x
zhangshanwen Dec 11, 2024
a278800
Unmarshal has GlobalErrors return
zhangshanwen Dec 11, 2024
bd37063
rename vErr1 to vErrSetter;fix validate set error message
zhangshanwen Dec 11, 2024
7f45601
fix not __currentValidateKeys
zhangshanwen Dec 11, 2024
4fa9f10
fix update setter
zhangshanwen Dec 11, 2024
d074ea7
fix section setter field error
zhangshanwen Dec 12, 2024
7a7dc8a
rebase main
zhangshanwen Dec 12, 2024
49f7088
remove validate updating locked
zhangshanwen Dec 12, 2024
7dc2c1b
fix merge
zhangshanwen Dec 13, 2024
76b19f7
fix merge
zhangshanwen Dec 13, 2024
cb19e68
change to dash
zhangshanwen Dec 18, 2024
d5e489b
Merge branch 'fix-pagination' into kak-fix-specific
zhangshanwen Dec 18, 2024
9595d89
upgrade x
zhangshanwen Dec 18, 2024
d19baa0
upgrade web
zhangshanwen Dec 18, 2024
7e5a1e2
Merge branch 'fix-pagination' into kak-fix-specific
zhangshanwen Dec 18, 2024
a443962
fix media page error
zhangshanwen Dec 19, 2024
474ed0b
Merge branch 'fix-pagination' into kak-fix-specific
zhangshanwen Dec 19, 2024
4fcf249
upgrade x
zhangshanwen Dec 19, 2024
b13f811
fix crop
zhangshanwen Dec 20, 2024
47a6d31
Merge branch 'fix-crop' into kak-fix-specific
zhangshanwen Dec 20, 2024
897214f
Merge branch 'activity-more-info-redirect' into kak-fix-specific
molon Dec 24, 2024
fd005aa
Merge branch 'ip-location' into kak-fix-specific
molon Dec 24, 2024
dcdd13b
location: GEO2IP => GEOIP2
molon Dec 24, 2024
baf2a2a
i18n: HumanizeTimeLongWhile jp
molon Dec 30, 2024
1966a1e
Merge branch 'ip-location' into kak-fix-specific
molon Jan 20, 2025
8d1f8bb
Merge branch 'session-max-lifetime' into kak-fix-specific
molon Jan 20, 2025
39389d8
upgrade x
zhangshanwen Jan 22, 2025
25dfd60
Merge branch 'fix-daniel-qor5-706' into kak-fix-specific
danni-cool Jan 22, 2025
d6153e9
Merge branch 'fix-daniel-qor5-706' into kak-fix-specific
danni-cool Feb 5, 2025
1600fb9
Merge branch 'fix-daniel-qor5-706' into kak-fix-specific
danni-cool Feb 5, 2025
8b962de
chore: update qor5/x/v3 dependency version in go.mod and go.sum
danni-cool Feb 6, 2025
badd16c
Merge pull request #874 from qor5/fix-same-container
zhangshanwen Feb 6, 2025
5266fe2
fix no group add; add renderContainerHover generate Hover Container …
zhangshanwen Feb 7, 2025
a759acd
Merge branch 'fix-twice-click' into kak-fix-specific
zhangshanwen Feb 7, 2025
c5d08c1
Merge branch 'session-bottom' into kak-fix-specific
molon Apr 3, 2025
3657739
Merge branch 'panic-error' into kak-fix-specific
molon Apr 3, 2025
9501b79
chore: update dependency version for github.com/qor5/x/v3 to v3.0.14-…
molon Apr 3, 2025
ce967fc
fix container data id
zhangshanwen Apr 14, 2025
442e7bf
shared container show all model containers
zhangshanwen Apr 14, 2025
6ea34f1
republish all show SuccessfullyPublish
zhangshanwen Apr 14, 2025
1c73e71
Merge branch 'fix-container-data-id' into kak-fix-specific
zhangshanwen Apr 14, 2025
c06399b
fix arr split
zhangshanwen Apr 14, 2025
462267e
Merge branch 'fix-container-data-id' into kak-fix-specific
zhangshanwen Apr 14, 2025
52cb118
merge
zhangshanwen Apr 15, 2025
317a230
Merge branch 'session-bottom' into kak-fix-specific
molon Apr 15, 2025
d5bf952
Merge pull request #944 from qor5/fix-wrap-publish
zhangshanwen Apr 16, 2025
734e541
Merge branch 'fix-wrap-publish' into kak-fix-specific
zhangshanwen Apr 16, 2025
ea44e86
Merge branch 'fix-wrap-publish' into kak-fix-specific
zhangshanwen Apr 16, 2025
1e41120
Merge branch 'panic-not-found' into kak-fix-specific
molon Apr 18, 2025
3b452ff
remove pagebuilder presets builder
zhangshanwen Apr 22, 2025
b695728
public containers
zhangshanwen Apr 23, 2025
1f779ea
fix test
zhangshanwen Apr 24, 2025
b305b7e
fix test
zhangshanwen Apr 24, 2025
eaaa78a
fix related models
zhangshanwen Apr 24, 2025
4ffc610
add perm test
zhangshanwen Apr 27, 2025
3c84d5c
shared tab
zhangshanwen Apr 28, 2025
f1765c1
fix test
zhangshanwen Apr 28, 2025
0eaf9b0
Update page builder integration tests and fix related online pages query
zhangshanwen Apr 29, 2025
97840e0
Merge branch 'with-computed' into kak-fix-specific
molon May 3, 2025
b5d37bc
GetURIPrefix
zhangshanwen May 8, 2025
eed93ec
style: format code with Gofumpt
deepsource-autofix[bot] May 8, 2025
db50566
Merge branch 'main' into fix-remove-ps
zhangshanwen May 8, 2025
e8ae3dd
remove hovering show btn
zhangshanwen May 8, 2025
d3baaa3
fix: replace strings.Index with strings.Contains for better readabili…
zhangshanwen May 12, 2025
a10fed0
Merge branch 'main' into fix-remove-ps
zhangshanwen May 12, 2025
e8a9552
refactor: clean up unused constants and remove deprecated function in…
zhangshanwen May 12, 2025
c6491e1
Merge branch 'fix-remove-ps' of https://github.com/qor5/admin into fi…
zhangshanwen May 12, 2025
fdbd02d
Merge branch 'main' into fix-remove-ps
zhangshanwen May 12, 2025
b9797ae
refactor: remove unnecessary return statements in tests and builder f…
zhangshanwen May 12, 2025
3215c99
refactor: simplify string length checks for better readability
zhangshanwen May 12, 8000 2025
20b3294
refactor: update HTTP request creation to use http.NoBody
zhangshanwen May 12, 2025
a40a493
refactor: enhance test output comparison for clarity
zhangshanwen May 12, 2025
2b0497c
refactor: improve test output comparison logic
zhangshanwen May 12, 2025
7f15c96
refactor: remove unnecessary return statements in demo case tests
zhangshanwen May 12, 2025
dad124c
Merge branch 'fix-remove-ps' into kak-fix-specific
zhangshanwen May 13, 2025
d1e36de
feat: enhance page builder with dynamic content title and localizatio…
zhangshanwen May 13, 2025
4b8cf44
refactor: enhance related online pages tab configuration
zhangshanwen May 13, 2025
beb6744
Merge pull request #966 from qor5/fix-remove-ps
zhangshanwen May 13, 2025
e337d57
Merge branch 'fix-remove-ps' into fix-container-edit
zhangshanwen May 13, 2025
b1a5a6a
detail muted
zhangshanwen May 14, 2025
fa2de44
Revert "detail muted"
zhangshanwen May 14, 2025
9effe02
fix: update container styling and CSS for editor
zhangshanwen May 15, 2025
57e6111
fix: handle presets.PageRenderIface panic in preview page
molon May 15, 2025
530fd25
Merge branch 'main' into fix-preview-panic
molon May 15, 2025
18d7b84
test: add case for handling preview not found page in page_seo_test
molon May 15, 2025
162a60f
fix deepsource
molon May 15, 2025
d2de72e
Merge branch 'fix-preview-panic' into kak-fix-specific
molon May 15, 2025
7374f82
Merge branch 'main' into fix-container-edit
zhangshanwen May 15, 2025
d6442bc
Merge branch 'main' into fix-container-edit
zhangshanwen May 16, 2025
a561083
refactor: add disabledShared flag for container sharing functionality
zhangshanwen May 20, 2025
d994030
Merge branch 'fix-container-edit' into fix-remove-ps
zhangshanwen May 20, 2025
a69bf23
style: format code with Gofumpt
deepsource-autofix[bot] May 20, 2025
2ccb33d
fix: update container wrapper logic and message labels
zhangshanwen May 20, 2025
83694b0
Merge branch 'main' into fix-remove-ps
zhangshanwen May 20, 2025
62da97f
fix test
zhangshanwen May 20, 2025
b5a92dd
Merge branch 'kak-fix-specific' into fix-remove-ps
zhangshanwen May 21, 2025
c832fe2
style: format code with Gofumpt
deepsource-autofix[bot] May 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions autocomplete/integration/autocomplete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestCategory(t *testing.T) {
err error
response autocomplete.Response
)
bytes := runTest(t, httptest.NewRequest("GET", "/complete/categories", nil), handler)
bytes := runTest(t, httptest.NewRequest("GET", "/complete/categories", http.NoBody), handler)
if err = json.Unmarshal(bytes.Bytes(), &response); err != nil {
t.Fatalf("json unmarshal faield :%v", err)
return
Expand All @@ -114,7 +114,7 @@ func TestUser(t *testing.T) {
response autocomplete.Response
)

bytes := runTest(t, httptest.NewRequest("GET", "/complete/users", nil), handler)
bytes := runTest(t, httptest.NewRequest("GET", "/complete/users", http.NoBody), handler)
if err = json.Unmarshal(bytes.Bytes(), &response); err != nil {
t.Fatalf("json unmarshal faield :%v", err)
return
Expand All @@ -140,7 +140,7 @@ func TestUserSearch(t *testing.T) {
response autocomplete.Response
)

bytes := runTest(t, httptest.NewRequest("GET", "/complete/users?search=k", nil), handler)
bytes := runTest(t, httptest.NewRequest("GET", "/complete/users?search=k", http.NoBody), handler)
if err = json.Unmarshal(bytes.Bytes(), &response); err != nil {
t.Fatalf("json unmarshal faield :%v", err)
return
Expand All @@ -166,7 +166,7 @@ func TestCategoryPage(t *testing.T) {
response autocomplete.Response
)

bytes := runTest(t, httptest.NewRequest("GET", "/complete/categories?page=2&pageSize=3", nil), handler)
bytes := runTest(t, httptest.NewRequest("GET", "/complete/categories?page=2&pageSize=3", http.NoBody), handler)
if err = json.Unmarshal(bytes.Bytes(), &response); err != nil {
t.Fatalf("json unmarshal faield :%v", err)
return
Expand Down
4 changes: 2 additions & 2 deletions cmd/qor5/website-template/admin/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestAll(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
data.TruncatePut(SqlDB)
return httptest.NewRequest("GET", "/admin/pages", nil)
return httptest.NewRequest("GET", "/admin/pages", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"My first page"},
},
Expand Down Expand Up @@ -85,7 +85,7 @@ func TestAll(t *testing.T) {
ReqFunc: func() *http.Request {
data.TruncatePut(SqlDB)
req := multipartestutils.NewMultipartBuilder().
PageURL("/admin/page_builder/my-headers?__execute_event__=presets_Update&id=1").
PageURL("/admin/my-headers?__execute_event__=presets_Update&id=1").
AddField("MenuItems[0].Text", "123").
AddField("MenuItems[0].Link", "123").
AddField("MenuItems[1].Text", "456").
Expand Down
18 changes: 9 additions & 9 deletions docs/docsrc/examples/examples_admin/activity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestActivity(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
activityData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/with-activity-products", nil)
return httptest.NewRequest("GET", "/with-activity-products", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"Under Armour Curry 7", "Asics Gel Lyte III", "Air Jordan 4 RM Prowls", "<v-badge", ">1</div>", "</v-badge>"},
},
Expand Down Expand Up @@ -555,7 +555,7 @@ func TestActivityAdmin(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
activityData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/activity-logs?lang=zh&per_page=10", nil)
return httptest.NewRequest("GET", "/activity-logs?lang=zh&per_page=10", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{
"操作日志列表",
Expand All @@ -571,7 +571,7 @@ func TestActivityAdmin(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
// activityData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/activity-logs?lang=zh&after=eyJJRCI6Mzd9&per_page=10", nil)
return httptest.NewRequest("GET", "/activity-logs?lang=zh&after=eyJJRCI6Mzd9&per_page=10", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{
"操作日志列表",
Expand All @@ -587,7 +587,7 @@ func TestActivityAdmin(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
// activityData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/activity-logs?lang=zh&before=eyJJRCI6MzZ9&per_page=10", nil)
return httptest.NewRequest("GET", "/activity-logs?lang=zh&before=eyJJRCI6MzZ9&per_page=10", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{
"操作日志列表",
Expand Down Expand Up @@ -632,7 +632,7 @@ func TestActivityAdmin(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
// activityData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/activity-logs?lang=zh&before=eyJJRCI6MzZ9&per_page=10", nil)
return httptest.NewRequest("GET", "/activity-logs?lang=zh&before=eyJJRCI6MzZ9&per_page=10", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{
"操作日志列表",
Expand All @@ -648,7 +648,7 @@ func TestActivityAdmin(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
// activityData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/activity-logs?lang=zh&before=eyJJRCI6MTIzfQ&per_page=10", nil)
return httptest.NewRequest("GET", "/activity-logs?lang=zh&before=eyJJRCI6MTIzfQ&per_page=10", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{
"操作日志列表",
Expand Down Expand Up @@ -757,7 +757,7 @@ func TestActivityAdmin(t *testing.T) {
},
ReqFunc: func() *http.Request {
// activityData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/activity-logs?lang=zh", nil)
return httptest.NewRequest("GET", "/activity-logs?lang=zh", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{
"没有可显示的记录",
Expand All @@ -783,7 +783,7 @@ func TestActivityAdmin(t *testing.T) {
},
ReqFunc: func() *http.Request {
// activityData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/activity-logs?lang=zh", nil)
return httptest.NewRequest("GET", "/activity-logs?lang=zh", http.NoBody)
},
ExpectPageBodyNotContains: []string{
"没有可显示的记录",
Expand Down Expand Up @@ -893,7 +893,7 @@ func TestActivityBeforeCreate(t *testing.T) {
Name: "Index Page",
Debug: true,
ReqFunc: func() *http.Request {
return httptest.NewRequest("GET", "/activity-logs?lang=zh", nil)
return httptest.NewRequest("GET", "/activity-logs?lang=zh", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{
"操作日志列表",
Expand Down
4 changes: 2 additions & 2 deletions docs/docsrc/examples/examples_admin/autocomplete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestAutoComplete(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
autocompleteData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/auto-complete-posts", nil)
return httptest.NewRequest("GET", "/auto-complete-posts", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"test.title", "test.body"},
},
Expand All @@ -43,7 +43,7 @@ func TestAutoComplete(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
autocompleteData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/auto-complete-posts?f_title=test.title__2", nil)
return httptest.NewRequest("GET", "/auto-complete-posts?f_title=test.title__2", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"test.title"},
ExpectPageBodyNotContains: []string{"test.body"},
Expand Down
6 changes: 3 additions & 3 deletions docs/docsrc/examples/examples_admin/autosync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestAutoSyncFrom(t *testing.T) {
})
},
ReqFunc: func() *http.Request {
return httptest.NewRequest("GET", "/with-slug-products?__execute_event__=presets_New", nil)
return httptest.NewRequest("GET", "/with-slug-products?__execute_event__=presets_New", http.NoBody)
},
ExpectPortalUpdate0ContainsInOrder: []string{"Title", "Title Slug", `form["TitleSlug__AutoSync__"] = (plaid().slug(form["Title"]||"")) === form["TitleSlug"]`, "Auto Sync"},
},
Expand All @@ -49,7 +49,7 @@ func TestAutoSyncFrom(t *testing.T) {
})
},
ReqFunc: func() *http.Request {
return httptest.NewRequest("GET", "/with-slug-products?__execute_event__=presets_New", nil)
return httptest.NewRequest("GET", "/with-slug-products?__execute_event__=presets_New", http.NoBody)
},
ExpectPortalUpdate0ContainsInOrder: []string{"Title", "Title Slug", `form["TitleSlug__AutoSync__"] = false`, "Auto Sync"},
},
Expand All @@ -63,7 +63,7 @@ func TestAutoSyncFrom(t *testing.T) {
})
},
ReqFunc: func() *http.Request {
return httptest.NewRequest("GET", "/with-slug-products?__execute_event__=presets_New", nil)
return httptest.NewRequest("GET", "/with-slug-products?__execute_event__=presets_New", http.NoBody)
},
ExpectPortalUpdate0ContainsInOrder: []string{"Title", "Title Slug", `form["TitleSlug__AutoSync__"] = true`, "Auto Sync"},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestLinkageSelectFilter(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
linkageSelectFilterData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/addresses", nil)
return httptest.NewRequest("GET", "/addresses", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"西湖区", "拱墅区"},
},
Expand Down Expand Up @@ -77,7 +77,7 @@ func TestLinkageSelectFilter(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
linkageSelectFilterData.TruncatePut(dbr)
return httptest.NewRequest("GET", "/addresses?f_province_city_district=浙江__1,杭州__3,拱墅区__7", nil)
return httptest.NewRequest("GET", "/addresses?f_province_city_district=浙江__1,杭州__3,拱墅区__7", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"拱墅区"},
ExpectPageBodyNotContains: []string{"西湖区"},
Expand Down
12 changes: 6 additions & 6 deletions docs/docsrc/examples/examples_admin/listing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestListingExample(t *testing.T) {
},
ReqFunc: func() *http.Request {
dataEmptyForListing.TruncatePut(dbr)
return httptest.NewRequest("GET", "/posts", nil)
return httptest.NewRequest("GET", "/posts", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"No records to show"},
},
Expand All @@ -67,7 +67,7 @@ func TestListingExample(t *testing.T) {
},
ReqFunc: func() *http.Request {
dataSeedForListing.TruncatePut(dbr)
return httptest.NewRequest("GET", "/posts", nil)
return httptest.NewRequest("GET", "/posts", http.NoBody)
},
ExpectPageBodyNotContains: []string{"No records to show"},
ExpectPageBodyContainsInOrder: []string{"v-pagination", ":total-visible='5'"},
Expand All @@ -87,7 +87,7 @@ func TestListingExample(t *testing.T) {
},
ReqFunc: func() *http.Request {
dataSeedForListing.TruncatePut(dbr)
return httptest.NewRequest("GET", "/posts", nil)
return httptest.NewRequest("GET", "/posts", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"ActionExample"},
},
Expand Down Expand Up @@ -374,7 +374,7 @@ func TestListingExample(t *testing.T) {
},
ReqFunc: func() *http.Request {
dataSeedForListing.TruncatePut(dbr)
return httptest.NewRequest("GET", "/posts", nil)
return httptest.NewRequest("GET", "/posts", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"BulkActionExample"},
},
Expand Down Expand Up @@ -677,7 +677,7 @@ func TestListingWithJoinsExample(t *testing.T) {
},
ReqFunc: func() *http.Request {
dataEmptyForListing.TruncatePut(dbr)
return httptest.NewRequest("GET", "/post-with-categories", nil)
return httptest.NewRequest("GET", "/post-with-categories", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"No records to show"},
},
Expand All @@ -690,7 +690,7 @@ func TestListingWithJoinsExample(t *testing.T) {
},
ReqFunc: func() *http.Request {
dataSeedForListing.TruncatePut(dbr)
return httptest.NewRequest("GET", "/post-with-categories", nil)
return httptest.NewRequest("GET", "/post-with-categories", http.NoBody)
},
ExpectPageBodyNotContains: []string{"No records to show"},
ExpectPageBodyContainsInOrder: []string{"mdi-chevron-left", "mdi-chevron-right"},
Expand Down
4 changes: 2 additions & 2 deletions docs/docsrc/examples/examples_admin/localization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestLocalization(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
l10nData.TruncatePut(SqlDB)
return httptest.NewRequest("GET", "/l10n-models", nil)
return httptest.NewRequest("GET", "/l10n-models", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"My model title", "International"},
},
Expand All @@ -47,7 +47,7 @@ func TestLocalization(t *testing.T) {
Debug: true,
ReqFunc: func() *http.Request {
l10nDataWithChina.TruncatePut(SqlDB)
return httptest.NewRequest("GET", "/l10n-models?locale=China", nil)
return httptest.NewRequest("GET", "/l10n-models?locale=China", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"中文标题"},
},
Expand Down
6 changes: 3 additions & 3 deletions docs/docsrc/examples/examples_admin/login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ func TestChangePassword(t *testing.T) {
Name: "index",
Debug: true,
ReqFunc: func() *http.Request {
return httptest.NewRequest("GET", "/", nil)
return httptest.NewRequest("GET", "/", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{"Change Password"},
},
{
Name: "show dialog",
Debug: true,
ReqFunc: func() *http.Request {
return httptest.NewRequest("GET", "/?__execute_event__=login_openChangePasswordDialog", nil)
return httptest.NewRequest("GET", "/?__execute_event__=login_openChangePasswordDialog", http.NoBody)
},
ExpectPortalUpdate0ContainsInOrder: []string{"Change your password"},
},
Expand Down Expand Up @@ -113,7 +113,7 @@ func TestPasswordWithVisibleToggle(t *testing.T) {
Name: "password field with visible toggle",
Debug: true,
ReqFunc: func() *http.Request {
return httptest.NewRequest("GET", "/auth/login", nil)
return httptest.NewRequest("GET", "/auth/login", http.NoBody)
},
ExpectPageBodyContainsInOrder: []string{`:password-visible-toggle='true'`},
},
Expand Down
Loading
Loading
0