-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #588 from qor5/feat-ui-reborn
style: style adjusting
- Loading branch information
Showing
11 changed files
with
142 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package examples_presets | ||
|
||
import ( | ||
"net/http" | ||
"testing" | ||
|
||
"github.com/qor5/admin/v3/presets" | ||
"github.com/qor5/admin/v3/presets/gorm2op" | ||
"github.com/qor5/web/v3/multipartestutils" | ||
// "github.com/theplant/gofixtures" | ||
) | ||
|
||
func TestPresetsUtilsDialog(t *testing.T) { | ||
pb := presets.New().DataOperator(gorm2op.DataOperator(TestDB)) | ||
PresetsUtilsDialog(pb, TestDB) | ||
|
||
cases := []multipartestutils.TestCase{ | ||
{ | ||
Name: "show vx dialog", | ||
Debug: true, | ||
ReqFunc: func() *http.Request { | ||
customerData.TruncatePut(SqlDB) | ||
return multipartestutils.NewMultipartBuilder(). | ||
PageURL("/customers?__execute_event__=presets_DetailingDrawer&id=1&var_current_active=__current_active_of_c512ed84__"). | ||
BuildEventFuncRequest() | ||
}, | ||
ExpectPageBodyContainsInOrder: []string{"vx-dialog", "type='error'", "title='Confirm'", "are you sure?"}, | ||
}, | ||
} | ||
|
||
for _, c := range cases { | ||
t.Run(c.Name, func(t *testing.T) { | ||
multipartestutils.RunCase(t, c, pb) | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
package utils | ||
|
||
type Messages struct { | ||
OK string | ||
Cancel string | ||
OK string | ||
Cancel string | ||
ModalTitleConfirm string | ||
} | ||
|
||
var Messages_en_US = &Messages{ | ||
OK: "OK", | ||
Cancel: "Cancel", | ||
OK: "OK", | ||
Cancel: "Cancel", | ||
ModalTitleConfirm: "Confirm", | ||
} | ||
|
||
var Messages_zh_CN = &Messages{ | ||
OK: "确定", | ||
Cancel: "取消", | ||
OK: "确定", | ||
Cancel: "取消", | ||
ModalTitleConfirm: "确认", | ||
} | ||
|
||
var Messages_ja_JP = &Messages{ | ||
OK: "OK", | ||
Cancel: "キャンセル", | ||
OK: "OK", | ||
Cancel: "キャンセル", | ||
ModalTitleConfirm: "確認", | ||
} |