Skip to content

Commit

Permalink
Merge pull request #468 from themeum/added-api-icon
Browse files Browse the repository at this point in the history
Fixed scroll issue and added API icon
  • Loading branch information
shewa12 authored Jun 5, 2023
2 parents 67dda64 + 69a2956 commit 0e556fb
Show file tree
Hide file tree
Showing 8 changed files with 425 additions and 231 deletions.
Binary file modified assets/fonts/tutor-v2.woff
Binary file not shown.
1 change: 1 addition & 0 deletions assets/react/admin-dashboard/segments/manage-api-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ document.addEventListener("DOMContentLoaded", async function() {
submitBtn.classList.remove("is-loading");
submitBtn.removeAttribute("disabled");
modal.classList.remove("tutor-is-active");
document.body.classList.remove('tutor-modal-open');
if (noRecordElem) {
noRecordElem.remove();
}
Expand Down
12 changes: 6 additions & 6 deletions classes/Tools_V2.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private function get_tools_fields() {
}

$attr_tools = array(
'status' => array(
'status' => array(
'label' => __( 'Status', 'tutor' ),
'slug' => 'status',
'desc' => __( 'Status Settings', 'tutor' ),
Expand Down Expand Up @@ -310,7 +310,7 @@ private function get_tools_fields() {
),
),
),
'import_export' => array(
'import_export' => array(
'label' => __( 'Import/Export', 'tutor' ),
'slug' => 'import_export',
'desc' => __( 'Import/Export Settings', 'tutor' ),
Expand All @@ -319,7 +319,7 @@ private function get_tools_fields() {
'icon' => 'tutor-icon-import-export',
'blocks' => array(),
),
'tutor_pages' => array(
'tutor_pages' => array(
'label' => __( 'Tutor Pages', 'tutor' ),
'slug' => 'tutor_pages',

Expand All @@ -331,18 +331,18 @@ private function get_tools_fields() {
'block' => array(),
),
),
'tutor_rest_api' => array(
'tutor_rest_api' => array(
'label' => __( 'Rest API', 'tutor' ),
'slug' => 'tutor_rest_api',
'desc' => __( 'Token List', 'tutor' ),
'template' => 'manage-tokens',
'view_path' => tutor()->path . 'views/pages/tools/',
'icon' => 'tutor-icon-privacy',
'icon' => 'tutor-icon-api',
'blocks' => array(
'block' => array(),
),
),
'tutor-setup' => array(
'tutor-setup' => array(
'label' => __( 'Setup Wizard', 'tutor' ),
'slug' => 'tutor-setup',
'desc' => __( 'Setup Wizard Settings', 'tutor' ),
Expand Down
Binary file modified v2-library/bundle/fonts/fonts/tutor-v2.woff
Binary file not shown.
28 changes: 28 additions & 0 deletions v2-library/bundle/fonts/tutor-icon/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,34 @@ <h2>Tutor icon: prefix <code>.tutor-icon-*name</code></h2>
<i class="tutor-icon-shortcode"></i>
<code>.tutor-icon-shortcode</code>
</div>
<div>
<i class="tutor-icon-privacy"></i>
<code>.tutor-icon-privacy</code>
</div>
<div>
<i class="tutor-icon-laptop"></i>
<code>.tutor-icon-laptop</code>
</div>
<div>
<i class="tutor-icon-desktop"></i>
<code>.tutor-icon-desktop</code>
</div>
<div>
<i class="tutor-icon-table"></i>
<code>.tutor-icon-table</code>
</div>
<div>
<i class="tutor-icon-mobile"></i>
<code>.tutor-icon-mobile</code>
</div>
<div>
<i class="tutor-icon-map-pin"></i>
<code>.tutor-icon-map-pin</code>
</div>
<div>
<i class="tutor-icon-api"></i>
<code>.tutor-icon-api</code>
</div>
</section>
</body>
</html>
24 changes: 24 additions & 0 deletions v2-library/bundle/fonts/tutor-icon/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,30 @@
-moz-osx-font-smoothing: grayscale;
}

/* tutor v2 new icons */

.tutor-icon-privacy:before {
content: "\f900";
}
.tutor-icon-laptop:before {
content: "\f901";
}
.tutor-icon-desktop:before {
content: "\f902";
}
.tutor-icon-tablet:before {
content: "\f903";
}
.tutor-icon-mobile:before {
content: "\f904";
}
.tutor-icon-map-pin:before {
content: "\f905";
}
.tutor-icon-api:before {
content: "\f906";
}

.tutor-icon-brand-buddypress:before {
content: "\e9e0";
}
Expand Down
3 changes: 3 additions & 0 deletions v2-library/bundle/fonts/tutor-icon/tutor-icon.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
.tutor-icon-map-pin:before {
content: "\f905";
}
.tutor-icon-api:before {
content: "\f906";
}


/* tutor old fonts */
Expand Down
Loading

0 comments on commit 0e556fb

Please sign in to comment.