Merge branch 'dev' of https://gitlab.com/Didvan/didvan-app into dev
This commit is contained in:
commit
1237be04f0
|
|
@ -3,11 +3,11 @@ name: app-test
|
|||
spec:
|
||||
allow_http: false
|
||||
disable_default_domains: true
|
||||
image: app-test:0.0.4
|
||||
image: app:1.1.1
|
||||
image_pull_policy: IfNotPresent
|
||||
path: /
|
||||
replicas: 1
|
||||
resources:
|
||||
memory: 50Mi
|
||||
memory: 150Mi
|
||||
domains:
|
||||
- name: dev.didvan.app
|
||||
- name: web.didvan.app
|
||||
|
|
@ -90,28 +90,28 @@ class RequestHelper {
|
|||
MapEntry('search', args.search),
|
||||
]);
|
||||
|
||||
static String markStudioItem(int id) => _baseStudioUrl + '/$id/mark';
|
||||
static String studioItemComments(int id) => _baseStudioUrl + '/$id/comments';
|
||||
static String addStudioItemComment(int id) =>
|
||||
static String markStudio(int id) => _baseStudioUrl + '/$id/mark';
|
||||
static String studioComments(int id) => _baseStudioUrl + '/$id/comments';
|
||||
static String addStudioComment(int id) =>
|
||||
_baseStudioUrl + '/$id/comments/add';
|
||||
static String feedbackStudioItemComment(int radarId, int id) =>
|
||||
_baseStudioUrl + '/$radarId/comments/$id/feedback';
|
||||
static String studioItemDetails(int id, StudioRequestArgs args) =>
|
||||
static String feedbackStudioComment(int studioId, int id) =>
|
||||
_baseStudioUrl + '/$studioId/comments/$id/feedback';
|
||||
static String studioDetails(int id, StudioRequestArgs args) =>
|
||||
_baseStudioUrl +
|
||||
'/$id' +
|
||||
_urlConcatGenerator([
|
||||
MapEntry('page', args.page.toString()),
|
||||
MapEntry('search', args.search),
|
||||
MapEntry('order', args.order),
|
||||
MapEntry('type', args.type),
|
||||
MapEntry('order', args.order),
|
||||
MapEntry('search', args.search),
|
||||
]);
|
||||
static String studioItemOverviews({required StudioRequestArgs args}) =>
|
||||
_baseStudioUrl +
|
||||
static String studioOverviews({required StudioRequestArgs args}) =>
|
||||
_baseNewsUrl +
|
||||
_urlConcatGenerator([
|
||||
MapEntry('page', args.page.toString()),
|
||||
MapEntry('search', args.search),
|
||||
MapEntry('order', args.order),
|
||||
MapEntry('type', args.type),
|
||||
MapEntry('order', args.order),
|
||||
MapEntry('search', args.search),
|
||||
]);
|
||||
|
||||
static String _urlConcatGenerator(List<MapEntry<String, String?>> additions) {
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ class _UsernameInputState extends State<UsernameInput> {
|
|||
if (value.length < 4) {
|
||||
return 'نام کاربری نمیتواند از 4 کاراکتر کمتر باشد';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
onChanged: (value) {
|
||||
state.username = value;
|
||||
|
|
|
|||
|
|
@ -100,13 +100,15 @@ class _ProfileState extends State<Profile> {
|
|||
email = value;
|
||||
},
|
||||
initialValue: state.user.email,
|
||||
validator: (value) async {
|
||||
validator: (value) {
|
||||
if (value.isEmpty) return null;
|
||||
bool emailValid = RegExp(
|
||||
r"^[a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[a-zA-Z0-9]+\.[a-zA-Z]+")
|
||||
.hasMatch(value);
|
||||
if (!emailValid) {
|
||||
return 'ایمیل وارد شده معتبر نمیباشد';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
),
|
||||
// const SizedBox(height: 16),
|
||||
|
|
|
|||
|
|
@ -24,12 +24,6 @@ class Studio extends StatefulWidget {
|
|||
class _StudioState extends State<Studio> {
|
||||
final FocusNode _focusNode = FocusNode();
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
context.read<StudioState>().init();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return CustomScrollView(
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class StudioState extends CoreProvier {
|
|||
}
|
||||
|
||||
final service = RequestService(
|
||||
RequestHelper.studioItemOverviews(
|
||||
RequestHelper.studioOverviews(
|
||||
args: StudioRequestArgs(
|
||||
page: page,
|
||||
type: videosSelected ? 'video' : 'podcast',
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class DidvanTextField extends StatefulWidget {
|
|||
final dynamic initialValue;
|
||||
final bool obsecureText;
|
||||
final bool acceptSpace;
|
||||
final Function(String value)? validator;
|
||||
final String? Function(String value)? validator;
|
||||
final TextInputType? textInputType;
|
||||
const DidvanTextField({
|
||||
Key? key,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: 1.0.5+5
|
||||
version: 1.1.0+1
|
||||
|
||||
environment:
|
||||
sdk: ">=2.12.0 <3.0.0"
|
||||
|
|
|
|||
Loading…
Reference in New Issue