Changeset 2952641
- Timestamp:
- 08/12/2023 12:26:33 PM (2 years ago)
- Location:
- acnoo-flutter-api/trunk
- Files:
-
- 6 edited
-
acnoo-flutter-api.php (modified) (2 diffs)
-
includes/api-handlers/media-upload.php (modified) (1 diff)
-
includes/flutter-api/assets/css/afa-admin.css (modified) (1 diff)
-
includes/flutter-api/controllers/maan-flutter-user.php (modified) (2 diffs)
-
includes/flutter-api/templates/afa-admin-page.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
acnoo-flutter-api/trunk/acnoo-flutter-api.php
r2942088 r2952641 4 4 * Plugin URI: https://wordpress.org/plugins/acnoo-flutter-api 5 5 * Description: The Acnoo Flutter API Plugin which is used for REST API configurations of mobile apps created by Acnoo. 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * Author: Acnoo 8 8 * Author URI: https://profiles.wordpress.org/acnoo/ … … 14 14 // Media Upload. 15 15 require plugin_dir_path( __FILE__ ) . 'includes/api-handlers/media-upload.php'; 16 require plugin_dir_path( __FILE__ ) . 'includes/api-handlers/acnoo-vendor-api.php'; 16 17 17 18 // Flutter API. -
acnoo-flutter-api/trunk/includes/api-handlers/media-upload.php
r2942088 r2952641 22 22 } 23 23 24 function media_permission_callback($request) { 25 $cookie = $request->get_header( 'User-Cookie' ); 26 if ( isset( $cookie ) && $cookie != null ) { 27 $user_id = validateCookieLogin( $cookie ); 28 if ( is_wp_error( $user_id ) ) { 29 return $user_id; 30 } 31 wp_set_current_user( $user_id ); 32 } 33 34 return current_user_can( 'driver' ) || current_user_can( 'upload_files' ); 24 function media_permission_callback() { 25 return current_user_can( 'upload_files' ); 35 26 } 36 27 -
acnoo-flutter-api/trunk/includes/flutter-api/assets/css/afa-admin.css
r2942088 r2952641 141 141 display:none; 142 142 } 143 144 /* Verification, Purchase code */ 145 .afa-verification p{ 146 font-size: 18px; 147 } 148 149 .afa-verification ol li{ 150 font-size: 17px; 151 margin-bottom: 12px; 152 } 153 154 .afa-verification h3{ 155 font-size: 20px; 156 } 157 158 .afa-verification .afa-card{ 159 background-color: #fff; 160 padding: 15px; 161 margin-bottom: 30px; 162 margin-top: 30px; 163 border-radius: 5px; 164 } 165 166 .afa-verification p a{ 167 text-decoration: none; 168 background: #df1bf5; 169 color: #fff; 170 padding: 5px 15px; 171 border-radius: 4px; 172 } 173 174 .afa-verification-form input[type='text']{ 175 width: 100%; 176 height: 40px; 177 margin-bottom: 20px; 178 font-size: 18px; 179 } 180 181 .afa-verification-form input[type='submit']{ 182 background-color: #df1bf5; 183 color: #fff; 184 padding: 10px 15px; 185 border-radius: 4px; 186 border: 0; 187 cursor: pointer; 188 font-size: 16px; 189 font-weight: 600; 190 } -
acnoo-flutter-api/trunk/includes/flutter-api/controllers/maan-flutter-user.php
r2930677 r2952641 871 871 $fields = 'id,name,first_name,last_name,email'; 872 872 $enable_ssl = true; 873 $access_token = $request['access_token'];873 $access_token = sanitize_text_field( $request['access_token'] ); 874 874 if ( ! isset( $access_token ) ) { 875 875 return parent::sendError( 'invalid_login', "You must include a 'access_token' variable. Get the valid access_token for this app from Facebook API.", 400 ); … … 1200 1200 } 1201 1201 1202 // TODO: Make use of url here.1203 1202 if ( isset( $params->avatar ) ) { 1204 1203 $count = 1; -
acnoo-flutter-api/trunk/includes/flutter-api/templates/afa-admin-page.php
r2930677 r2952641 9 9 <h1><?php echo esc_html( get_admin_page_title() ); ?></h1> <br/> 10 10 <?php 11 // if ( get_option( 'acnoo_themeforet_activation' ) ) { 12 // echo load_template( dirname( __FILE__ ) . '/admin/afa-admin-navigation.php' ); 13 // } else { 14 // echo load_template( dirname( __FILE__ ) . '/admin/afa-admin-activation.php' ); 15 // } 16 11 17 echo load_template( dirname( __FILE__ ) . '/admin/afa-admin-navigation.php' ); 18 12 19 ?> 13 20 </div> -
acnoo-flutter-api/trunk/readme.txt
r2942088 r2952641 3 3 Tags: acnoo, rest, api, maanstore, maantheme, react-native, flutter, ios, android 4 4 Requires at least: 5.0 5 Tested up to: 6. 2.26 Stable tag: 1.0. 35 Tested up to: 6.3 6 Stable tag: 1.0.4 7 7 License: GPL-2.0 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 41 41 - Sending push notifications using Firebase, using device token. 42 42 - Automatic push notification sending when order status is changed, e.g - processing to out for delivery. 43 - Dokan vendor registration from mobile app. 44 - Vendor and Customer social login using Google, Facebook account. 43 45 44 46 More of our features are coming soon. We are working actively on all our products, including flutter apps, WordPress plugins etc. … … 57 59 58 60 == Changelog == 61 = 1.0.4 (August 12, 2023) = 62 * **new:** Dokan vendor registration 63 * **new:** Dokan vendor and customer registration using facebook and google sign up 64 * **enhancement:** Media upload API 59 65 60 66 = 1.0.3 (July 23, 2023) =
Note: See TracChangeset
for help on using the changeset viewer.