Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merger code into main after Release v1.2.1 #35

Merged
merged 6 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,6 @@ Want to know more about the importance of SnippetMaster? Check out this video [h

For a KT session on how to use it effectively, watch this video [here](https://youtu.be/SjAkQXMdZqo).
**Enjoy!**

## Changelog
[Changelog](changelog.md)
25 changes: 25 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Changelog - Version 1.2.1

### New Features

- Added new snippets for customizing the WordPress admin interface.

- Implemented functionality to hide and show custom menu items from the sidebar.

- Enabled the ability for ninjas to access and interact with other user roles without requiring a third-party plugin.

- Introduced new videos demonstrating how to contribute to Snippet Master.

- Included guidelines on how to release packages in Snippet Master.

- Expanded support for multiple languages.

### Bug Fixes

- Resolved the documentation table content issue.

### Improvements

- Updated documentation to reflect the latest changes and improvements.

- Implemented UI-related changes for a more intuitive user experience.
150 changes: 92 additions & 58 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Snippet Master</title>
<meta name="name" content="All in one snippetmaster">
<meta name="description" content="A Visual Studio Code extension that provides custom code snippets for a variety of programming languages. With SnippetMaster, you can save time and increase your productivity by quickly inserting common code patterns and snippets.">
<meta name="keywords" content="visual-studio-code, vscode, All in One Snippet Master, python, react, react development, windows commands, wordpress developer, wordpress code snippets, laravel developer, wordpress plugin, wordpress code snippet plugin, shell or linux commands, linux, snippet, code-snippets, custom-snippets, web-development, php, javascript, html, css, msrajawat298, vitabletech, SnippetMaster, CodeBoost, CodeHelper, CodeNexus, SnipAssist, CodeFuse, SnipPilot, CodeWise, SnipCraft">
<meta name="author" content="Mayank singh Kushwah">
<meta name="publisher" content="vitabletech">
<meta name="application-name" content="All in One Snippet Master">
<meta name="version" content="1.1.0">
<meta name="license" content="MIT">
<meta name="name" content="All in one snippetmaster" />
<meta
name="description"
content="A Visual Studio Code extension that provides custom code snippets for a variety of programming languages. With SnippetMaster, you can save time and increase your productivity by quickly inserting common code patterns and snippets."
/>
<meta
name="keywords"
content="visual-studio-code, vscode, All in One Snippet Master, python, react, react development, windows commands, wordpress developer, wordpress code snippets, laravel developer, wordpress plugin, wordpress code snippet plugin, shell or linux commands, linux, snippet, code-snippets, custom-snippets, web-development, php, javascript, html, css, msrajawat298, vitabletech, SnippetMaster, CodeBoost, CodeHelper, CodeNexus, SnipAssist, CodeFuse, SnipPilot, CodeWise, SnipCraft"
/>
<meta name="author" content="Mayank singh Kushwah" />
<meta name="publisher" content="vitabletech" />
<meta name="application-name" content="All in One Snippet Master" />
<meta name="version" content="1.1.0" />
<meta name="license" content="MIT" />

<!-- Bootstrap CSS -->
<link
Expand Down Expand Up @@ -52,7 +58,9 @@
<hr />
<h3>Information:</h3>
<ul>
<li><strong>Extension Name:</strong> <span id="displayName"></span></li>
<li>
<strong>Extension Name:</strong> <span id="displayName"></span>
</li>
<li><strong>Latest Version:</strong> <span id="version"></span></li>
<li><strong>Publisher:</strong> <span id="publisher"></span></li>
<li><strong>Author:</strong> <span id="author"></span></li>
Expand All @@ -74,8 +82,17 @@ <h3>Features</h3>
and snippets.
</li>
<li>
Supports multiple programming languages <span class="badge badge-primary">PHP</span> <span class="badge badge-warning text-dark">JavaScript </span> <span class="badge badge-danger">CSS</span> <span class="badge badge-info"> SASS</span> <span class="badge badge-secondary"> Shell, linux commands</span>
<span class="badge badge-success"> Other windows commands other general useful</span>
Supports multiple programming languages
<span class="badge badge-primary">PHP</span>
<span class="badge badge-warning text-dark">JavaScript </span>
<span class="badge badge-danger">CSS</span>
<span class="badge badge-info"> SASS</span>
<span class="badge badge-secondary">
Shell, linux commands</span
>
<span class="badge badge-success">
Other windows commands other general useful</span
>
</li>
<li>Easy to use and install in Visual Studio Code.</li>
<li>Open source with a permissive MIT license.</li>
Expand All @@ -84,67 +101,79 @@ <h3>Upcomming Features</h3>
<ul>
<li>wordpress</li>
<li>laravel</li>
<li>React</li>
<li>React</li>
<li>Anugalr</li>
<li>Python </li>
<li>Python</li>
</ul>
</div>
<div class="col-md-12 mt-5 table-responsive">
<h3>Snippets Description Table:</h3>
<hr />
</div>
<div class="col-md-10 mx-auto mt-3">
<h3>Snippets Description Table:</h3>
<hr />
<div class="table-responsive">
<table id="snippets-table" class="table">
<thead>
<tr>
<th style="width: 20px !important;">Language</th>
<th>Name</th>
<th>Prefix</th>
<th>Description</th>
<th>Language</th>
</tr>
</thead>
<tbody id="table-body"></tbody>
<tbody id="table-body" class="d-none"></tbody>
</table>
</div>
<div class="col-md-12 mt-5 table-responsive">
<h2>Tutorial</h2>
<p>
Want to learn how to use it? Check out the tutorial
<a href="https://youtu.be/eG5Na0KTGH0">here</a>.
</p>
<h2>Rate Us</h2>
<p>
If you've already tried it, please do rate us on the Marketplace
<a
href="https://marketplace.visualstudio.com/items?itemName=vitabletech.snippetmaster&amp;ssr=false#review-details"
>here</a
>.
</p>
<h2>More Info</h2>
<p>
Want to know more about the importance of SnippetMaster? Check out this video
<a href="https://youtu.be/gEW9eqBYod8">here</a>.
</p>
<h2>KT Session</h2>
<p>
For a KT session on how to use it effectively, watch this video
<a href="https://youtu.be/SjAkQXMdZqo">here</a>.
</p>
</div>
</div>
</div>
</div>
<div class="b-example-divider"></div>
<!-- Footer Section -->
<footer>
<div class="container text-center mt-3">
<div class="row">
<div class="col-md-12">
<p>
&copy; <span id="year"></span> SnippetMaster by
<span id="company_name"></span>. All Rights Reserved.
</p>
</div>
</div>
</div>
</footer>
<div class="container">
<footer class="row pt-5 mt-5 border-top">
<div class="col-12 col-lg-6">
<h5>Tutorial</h5>
<p>
Want to know more about the importance of SnippetMaster? Check out this video
<a href="https://youtu.be/gEW9eqBYod8">here</a>.
</p>
<p>
Want to learn how to use it? Check out the tutorial
<a href="https://youtu.be/eG5Na0KTGH0">here</a>.
</p>
<p>
A Step-by-Step Guide Contribute to SnippetMaster
<a href="https://youtu.be/k2jzIYUEt_Y">here</a>.
</p>
<p>
Git Workflow Tutorial: Releasing and Merging Changes <a href="https://youtu.be/po_mYhXvDBk">here</a>.
</p>
<p>
For a KT session on how to use it effectively, watch this video
<a href="https://youtu.be/SjAkQXMdZqo">here</a>.
</p>
</div>

<div class="col-12 col-lg-6">
<h5>Rate Us</h5>
<p>
If you've already tried it, please do rate us on the Marketplace
<a
href="https://marketplace.visualstudio.com/items?itemName=vitabletech.snippetmaster&amp;ssr=false#review-details"
>here</a>
</p>
</div>
</footer>
</div>
<div class="container-fluid pt-3 text-center bg-dark text-white">
<div class="row">
<div class="col-md-12">
<p>
&copy; <span id="year"></span> SnippetMaster by
<span id="company_name"></span>. All Rights Reserved.
</p>
</div>
</div>
</div>
<!-- Bootstrap 5 JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
Expand Down Expand Up @@ -174,7 +203,7 @@ <h2>KT Session</h2>
for (const [key, value] of Object.entries(
data?.contributes?.snippets
)) {
if (value.path !== "") {
if (value.path) {
const result = await $.getJSON(value.path);
if (result) {
for (const [
Expand All @@ -196,10 +225,13 @@ <h2>KT Session</h2>
// Add the row to the HTML for the table
tableHtml += `
<tr>
<td>${value.path
.split(".code-snippets")[0]
.split("/")
.pop()}</td>
<td>${snippetsName}</td>
<td>${snippetsDescription.prefix}</td>
<td>${description}</td>
<td>${value.path.split(".code-snippets")[0].split("/").pop()}</td>
</tr>
`;
}
Expand All @@ -208,7 +240,9 @@ <h2>KT Session</h2>
}
}
}
$("#snippets-table").DataTable();
$("#snippets-table").DataTable({
initComplete: () => $("#table-body").removeClass("d-none"),
});
} catch (error) {
console.error("Failed to load package.json", error);
}
Expand Down
30 changes: 29 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "snippetmaster",
"displayName": "All in One Snippet Master",
"description": "A Visual Studio Code extension that provides custom code snippets for a variety of programming languages. With SnippetMaster, you can save time and increase your productivity by quickly inserting common code patterns and snippets.",
"version": "1.2.0",
"version": "1.2.1",
"publisher": "vitabletech",
"author": {
"name": "Mayank singh Kushwah",
Expand Down Expand Up @@ -31,6 +31,30 @@
"icon": "logo.png",
"contributes": {
"snippets": [
{
"language": "PHP"
},
{
"language": "Wordpress"
},
{
"language": "javaScript"
},
{
"language": "css"
},
{
"language": "Sass"
},
{
"language": "Sql"
},
{
"language": "Shell Script Commands"
},
{
"language": "Windows Usefull Commands"
},
{
"language": "",
"path": "./snippets/php.code-snippets"
Expand Down Expand Up @@ -62,6 +86,10 @@
{
"language": "php",
"path": "./snippets/wp_class_and_constants.code-snippets"
},
{
"language": "php",
"path": "./snippets/wp_admin.code-snippets"
}
]
},
Expand Down
10 changes: 0 additions & 10 deletions snippets/wp.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -13437,11 +13437,6 @@
"body": "zeroise(${1:\\$number}, ${2:\\$threshold})",
"description": "Add leading zeros when necessary."
},
"_": {
"prefix": "__",
"body": "_(${1:\\$string})",
"description": ""
},
"_access_denied_splash": {
"prefix": "__access_denied_splash",
"body": "_access_denied_splash()",
Expand Down Expand Up @@ -14442,11 +14437,6 @@
"body": "_xmlrpc_wp_die_handler(${1:\\$message}, ${2:\\$title}, ${3:\\$args})",
"description": "Kill WordPress execution and display XML message with error message."
},
"__": {
"prefix": "___",
"body": "__(${1:\\$text}, ${2:\\$domain})",
"description": "Retrieve the translation of $text."
},
"__autoload": {
"prefix": "___autoload",
"body": "__autoload(${1:\\$classname})",
Expand Down
Loading