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