Skip to content

Commit

Permalink
Merge pull request #2 from piyushwebkul/0.1
Browse files Browse the repository at this point in the history
All Reported Issues are now fixed.
  • Loading branch information
kumarSaurabh27 authored Jul 3, 2019
2 parents 6c59df5 + 3284477 commit ccf1bf2
Show file tree
Hide file tree
Showing 39 changed files with 800 additions and 398 deletions.
100 changes: 100 additions & 0 deletions _data/sidebar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
sidebar:
- title: System Requirements
items:
- page: Ubuntu
url: /uvdemo/requirements/requirements-ubuntu.html
- page: Windows
url: /uvdemo/requirements/requirements-windows.html
- page: Mac
url: /uvdemo/requirements/requirements-mac.html

- title: Installation
items:
- page: Ubuntu
url: /uvdemo/installation/installation-ubuntu.html
- page: Windows
url: /uvdemo/installation/installation-windows.html
- page: Mac
url: /uvdemo/installation/installation-mac.html

- title: Users
items:
- page: Groups
url: /uvdemo/users/groups.html
- page: Teams
url: /uvdemo/users/teams.html
- page: Agents
url: /uvdemo/users/agents.html
- page: Privileges
url: /uvdemo/users/privileges.html
- page: Customers
url: /uvdemo/users/customers.html

- title: Knowledgebase
items:
- page: Folder
url: /uvdemo/knowledgebase/folder.html
- page: Category
url: /uvdemo/knowledgebase/category.html
- page: Article
url: /uvdemo/knowledgebase/article.html

- title: Productivity
items:
- page: Ticket Types
url: /uvdemo/productivity/ticket-type.html
- page: Tags
url: /uvdemo/productivity/tags.html
- page: Saved Replies
url: /uvdemo/productivity/replies.html
- page: Workflows
url: /uvdemo/productivity/workflow.html
- page: Prepared Responses
url: /uvdemo/productivity/prepared-response.html

- title: Settings
items:
- page: Branding
url: /uvdemo/settings/branding.html
- page: Email Templates
url: /uvdemo/settings/template.html
- page: Swift Mailer
url: /uvdemo/settings/swiftmailer.html
- page: Email Settings
url: /uvdemo/settings/email-settings.html
- page: Block Spam
url: /uvdemo/settings/block-spam.html
- page: Mail Box
url: /uvdemo/settings/mailbox.html

- title: Helpful Links
items:
- page: Schedule a Demo
url: https://demo.uvdesk.com/
- page: Video Tutorial
url: https://www.youtube.com/channel/UCKKt4IOC7ynLwhJMP35uFeQ
- page: Forum
url: https://forums.uvdesk.com/
- page: Read Blogs
url: https://www.uvdesk.com/en/articles/

- title: Community
items:
- page: Get Involved in the Community
url: https://github.com/uvdesk/community-skeleton/blob/master/README.md
- page: Help to Make UVdesk Community
url: https://github.com/uvdesk

- title: Social Sites
items:
- page: Twitter
url: https://twitter.com/uvdesk?utm_source=&utm_medium=website&utm_content=content
- page: Facebook
url: https://www.facebook.com/uvdesk?utm_source=&utm_medium=website&utm_content=content
- page: Youtube
url: https://www.youtube.com/channel/UCKKt4IOC7ynLwhJMP35uFeQ

- title: Generate Tickets
items:
- page: Create Ticket
url: https://support.uvdesk.com/en/customer/create-ticket/
35 changes: 35 additions & 0 deletions _includes/footer-scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<script src="/assets/js/uvdocs.js" async defer></script>
<script src="{{ site.baseurl }}/js/jekyll-search.js" type="text/javascript"></script>
<script type="text/javascript">
initializeSearchBarHandler();

window.addEventListener('resize', () => {
initializeSearchBarHandler();
});

function initializeSearchBarHandler() {
SimpleJekyllSearch.init({
searchInput: document.querySelector('.inline-header .searchbar .searchBox'),
resultsContainer: document.querySelector('.inline-header .searchbar .results-container'),
dataSource: '{{ side.baseurl }}/search.json',
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}<\/a><\/li>',
noResultsText: '<li><a href="javascript:void(0)">No Results Found</a></li>',
fuzzy: true
});

if (window.innerWidth < 1000) {
SimpleJekyllSearch.init({
searchInput: document.querySelector('.hamburger-menu-wrapper .searchbar .searchBox'),
resultsContainer: document.querySelector('.hamburger-menu-wrapper .searchbar .results-container'),
dataSource: '{{ side.baseurl }}/search.json',
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}<\/a><\/li>',
noResultsText: '<li><a href="javascript:void(0)">No Results Found</a></li>',
fuzzy: true
});
}
}

// window.addEventListener('scroll', (event) => {
// console.log(document.documentElement.scrollHeight - document.documentElement.clientHeight, document.documentElement.scrollTop );
// });
</script>
21 changes: 21 additions & 0 deletions _includes/header-scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<script>
// current openedMenu static variable;
const inlineMenuItem = staticVariable();

// currentOpened External menu
const externalMenuItem = staticVariable();

// current selected dropdown menu item
const openedDropdownItem = staticVariable();

// closure for storing static values
function staticVariable() {
let currentValue = null;
return function (newValue = null) {
if (newValue) {
currentValue = newValue;
}
return currentValue;
}
}
</script>
6 changes: 3 additions & 3 deletions _includes/navigation1.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

<div class="second">
<div class="inline-header">
<div class="search-bar-div">
<input class="search-bar-header" type="text" id="search-bar-header" autocomplete="off" >
<div class="searchbar">
<input class="searchBox" type="text" autocomplete="off" >
<ul id="results-container" class="results-container"></ul>
</div>
<h3 onclick="window.open('/', '_self')" class="nav-title">Documentation</h3>
<button onclick="window.open('https:\/\/github.com\/uvdesk\/uvdesk.github.io', '_blank')" class="button headerBtn">Fork on Github</button>
<button onclick="window.open('https:\/\/webkul.uvdesk.com\/en\/', '_blank')" class="button headerBtn">UVdesk Helpdesk</button>
<button onclick="window.open('https:\/\/www.uvdesk.com\/en\/opensource', '_blank')" class="button headerBtn">UVdesk Helpdesk</button>

</div>

Expand Down
145 changes: 20 additions & 125 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,129 +1,24 @@
<div class="hamburger-menu">
<h3 class="hamburger-menu-title" onclick="window.open('/', '_self')">Documentation</h3>

<input type="text" id="search-bar-sidebar" class="search-bar-sidebar" autocomplete="off">
<ul id="results-container-sidebar" class="results-container-sidebar"></ul>

<h3 class="hamburger-menu-title" onclick="window.open('/', '_self')">Documentation</h3>
<div class="hamburger-menu-wrapper">



<div class="parent">

<button class="dropdown-btn" id="top-button">System Requirements</button>
<div class="dropdown-container">
<a href="/uvdemo/requirements/requirements-ubuntu.html">Ubuntu</a>
<a href="/uvdemo/requirements/requirements-windows.html">Windows</a>
<a href="/uvdemo/requirements/requirements-mac.html">Mac</a>
</div>
</div>

<div class="parent">
<button class="dropdown-btn" id="top-button">Installation</button>
<div class="dropdown-container">

<a href="/uvdemo/installation/installation-ubuntu.html">Ubuntu</a>
<a href="/uvdemo/installation/installation-windows.html">Windows</a>
<a href="/uvdemo/installation/installation-mac.html">Mac</a>
</div>
</div>

<div class="parent">
<button class="dropdown-btn">Users</button>
<div class="dropdown-container">
<a href="/uvdemo/users/groups.html">Groups</a>
<a href="/uvdemo/users/teams.html">Teams</a>
<a href="/uvdemo/users/agents.html">Agents</a>
<a href="/uvdemo/users/privileges.html">Privileges</a>
<a href="/uvdemo/users/customers.html">Customers</a>
</div>
</div>

<div class="parent">
<button class="dropdown-btn">Knowledgebase</button>
<div class="dropdown-container">
<a href="/uvdemo/knowledgebase/folder.html">Folder</a>
<a href="/uvdemo/knowledgebase/category.html">Category</a>
<a href="/uvdemo/knowledgebase/article.html">Article</a>
</div>
</div>

<div class="parent">
<button class="dropdown-btn">Productivity</button>
<div class="dropdown-container">
<a href="/uvdemo/productivity/ticket-type.html">Ticket Types</a>
<a href="/uvdemo/productivity/tags.html">Tags</a>
<a href="/uvdemo/productivity/replies.html">Saved Replies</a>
<a href="/uvdemo/productivity/workflow.html">Workflows</a>
<a href="/uvdemo/productivity/prepared-response.html">Prepared Responses</a>
</div>
</div>

<div class="parent">
<button class="dropdown-btn">Setting</button>
<div class="dropdown-container">
<a href="/uvdemo/settings/branding.html">Branding</a>
<a href="/uvdemo/settings/template.html">Email Templates</a>
<a href="/uvdemo/settings/swiftmailer.html">Swift Mailer</a>
<a href="/uvdemo/settings/email-settings.html">Email Settings</a>
<a href="/uvdemo/settings/block-spam.html">Block Spam</a>
<a href="/uvdemo/settings/mailbox.html">Mail Box</a>
</div>
</div>

<div class="parent">
<button class="dropdown-btn">Helpful Links</button>
<div class="dropdown-container">
<a target="_blank" href="https://demo.uvdesk.com/">Schedule a Demo</a>
<a target="_blank" href="https://www.youtube.com/channel/UCKKt4IOC7ynLwhJMP35uFeQ">Video Tutorial</a>
<a target="_blank" href="https://forums.uvdesk.com/">Forum</a>
<a target="_blank" href="https://www.uvdesk.com/en/articles/">Read Blogs</a>

</div>
</div>

<div class="parent">
<button class="dropdown-btn">Community</button>
<div class="dropdown-container">
<a target="_blank" href="https://github.com/uvdesk/community-skeleton/blob/master/README.md">Get Involved in the Community</a>
<a target="_blank" href="https://github.com/uvdesk">Help to Make UVdesk Community</a>
</div>
</div>

<div class="parent">
<button class="dropdown-btn">Social Sites</button>
<div class="dropdown-container">
<a target="_blank" href="https://www.facebook.com/uvdesk/">Facebook</a>
</div>
</div>

<div class="parent">
<button class="dropdown-btn">Generates Tickets</button>
<div class="dropdown-container">
<a target="_blank" href="https://support.uvdesk.com/en/">Create Ticket</a>
</div>
</div>

<button onclick="window.open('https:\/\/github.com\/uvdesk\/uvdesk.github.io', '_blank')" class="button headerBtn hamburgerMenuContentBtn">Fork on Github</button>
<button onclick="window.open('https:\/\/webkul.uvdesk.com\/en\/', '_blank')" class="button headerBtn hamburgerMenuContentBtn">UVdesk Helpdesk</button>


<div class="searchbar">
<input type="text" class="searchBox" autocomplete="off">
<ul class="results-container"></ul>
</div>
{% for menuItem in site.data.sidebar.sidebar %}
<div class="parent">
<button class="dropdown-btn {% if page.category == menuItem.title %}is-selected{% endif %}" id="top-button" onclick="openHamburgerDropdown(event)">{{ menuItem.title }}</button>
<div class="dropdown-container {% unless page.category == menuItem.title %}display-none{% endunless %}">
{% for item in menuItem.items %}
<a class="{% if page.url == item.url %}is-selected{% endif %}" click="onSelectDrowdownItem"
{% assign inlineCheck = item.url | slice: 0, 4 %}
target="{% if inlineCheck == 'http' %}_blank{% else %}_self{% endif %}"
href="{{ item.url }}">{{ item.page }}</a>
{% endfor %}
</div>
</div>
{% endfor %}
<button onclick="window.open('https:\/\/github.com\/uvdesk\/uvdesk.github.io', '_blank')" class="button headerBtn hamburgerMenuContentBtn bgPurpleShade">Fork on Github</button>
<button onclick="window.open('https:\/\/www.uvdesk.com\/en\/opensource', '_blank')" class="button headerBtn hamburgerMenuContentBtn bgGreenShade">UVdesk Helpdesk</button>
</div>
<script src="{{ site.baseurl }}/js/jekyll-search.js" type="text/javascript"></script>
<script type="text/javascript">

if( document.getElementById('search-bar-sidebar').style.display !== 'none' )
{
SimpleJekyllSearch.init({
searchInput: document.getElementById('search-bar-sidebar'),
resultsContainer: document.getElementById('results-container-sidebar'),
dataSource: '{{ site.baseurl }}/search.json',
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}<\/a><\/li>',
noResultsText: 'No Results Found',
//limit: 10,
fuzzy: true

});
}
</script>
</div>
36 changes: 3 additions & 33 deletions _layouts/component-layout.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
{%- include header-scripts.html -%}
<title>{{ page.title | default: site.title }}</title>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand All @@ -19,40 +20,9 @@
</div>
{{ content }}
<div class="footer">
<div class="footer123">
<p> &copy; Copyright 2018 Webkul Software. All rights reserved under MIT License.</p>
</div>
<span> &copy; Copyright 2018 Webkul Software. All rights reserved under MIT License.</span>
</div>
<script src="{{ site.baseurl }}/js/jekyll-search.js" type="text/javascript"></script>
<script type="text/javascript">
if( document.getElementById('search-bar-header').style.display === 'none' )
{
SimpleJekyllSearch.init({
searchInput: document.getElementById('search-bar-sidebar'),
resultsContainer: document.getElementById('results-container-sidebar'),
dataSource: '{{ side.baseurl }}/search.json',
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}<\/a><\/li>',
noResultsText: 'No Results Found',
//limit: 10,
fuzzy: true

});

} else {

SimpleJekyllSearch.init({
searchInput: document.getElementById('search-bar-header'),
resultsContainer: document.getElementById('results-container'),
dataSource: '{{ site.baseurl }}/search.json',
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}<\/a><\/li>',
noResultsText: 'No Results Found',
//limit: 10,
fuzzy: true
});

}
</script>
{%- include footer-scripts.html -%}
</div>
<script src="/assets/js/uvdocs.js"></script>
</body>
</html>
Loading

0 comments on commit ccf1bf2

Please sign in to comment.