Skip to content

Commit

Permalink
Merge pull request #9 from nxxm/feature/bearer-authentication
Browse files Browse the repository at this point in the history
Feature/bearer authentication
  • Loading branch information
daminetreg authored May 7, 2021
2 parents 4d518d5 + 3be3805 commit f7ec249
Show file tree
Hide file tree
Showing 225 changed files with 21,504 additions and 168 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@ name: build
on: [push]

jobs:
build-wasm:
name: build-wasm
runs-on: ubuntu-latest
container: nxxm/nxxm-ubuntu-develop
steps:
- name: checkout
uses: actions/checkout@v2
- name: nxxm builds project
run: |
nxxm . --dont-upgrade --verbose
build-linux:
name: build-linux
runs-on: ubuntu-latest
container: nxxm/nxxm-ubuntu
container: nxxm/nxxm-ubuntu-develop

steps:
- name: checkout
uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ INPUT = doc/INDEX.md \
xxhr/body.hpp \
xxhr/cookies.hpp \
xxhr/digest.hpp \
xxhr/bearer.hpp \
xxhr/error.hpp \
xxhr/handler.hpp \
xxhr/max_redirects.hpp \
Expand Down Expand Up @@ -72,7 +73,7 @@ PROJECT_NAME = "xxhr"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 1.0.0
PROJECT_NUMBER = 1.0.1

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down Expand Up @@ -1376,7 +1377,7 @@ ECLIPSE_DOC_ID = org.doxygen.Project
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

DISABLE_INDEX = NO
DISABLE_INDEX = YES

# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
# structure should be generated to display hierarchical information. If the tag
Expand Down
58 changes: 37 additions & 21 deletions doc/doxygen/custom-search.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/*
@licstart The following is the entire license notice for the JavaScript code in this file.
The MIT License (MIT)
Copyright (C) 1997-2020 by Dimitri van Heesch
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@licend The above is the entire license notice for the JavaScript code in this file
*/
function convertToId(search)
{
var result = '';
Expand Down Expand Up @@ -54,7 +78,7 @@ function getYPos(item)
Parameters:
name - The name of the global variable that will be
storing this instance. Is needed to be able to set timeouts.
resultPath - path tsemantic/dist/o use for external files
resultPath - path to use for external files
*/
function SearchBox(name, resultsPath, inFrame, label)
{
Expand All @@ -72,7 +96,7 @@ function SearchBox(name, resultsPath, inFrame, label)
this.searchIndex = 0;
this.searchActive = false;
this.insideFrame = inFrame;
this.searchLabel = ""; // label is ignored in favor of html5 placeholder.
this.searchLabel = label;

// ----------- DOM Elements

Expand All @@ -89,7 +113,7 @@ function SearchBox(name, resultsPath, inFrame, label)
{ return document.getElementById("MSearchResults"); }

this.DOMPopupSearchResultsWindow = function()
{ return document.getElementById("CustomSearchResults"); }
{ return document.getElementById("MSearchResultsWindow"); }

this.DOMSearchClose = function()
{ return document.getElementById("MSearchClose"); }
Expand Down Expand Up @@ -120,8 +144,8 @@ function SearchBox(name, resultsPath, inFrame, label)
// show search selection popup
searchSelectWindow.style.display='block';
left -= searchSelectWindow.offsetWidth;
//searchSelectWindow.style.left = left + 'px';
//searchSelectWindow.style.top = top + 'px';
searchSelectWindow.style.left = left + 'px';
searchSelectWindow.style.top = top + 'px';
}
else
{
Expand All @@ -131,8 +155,8 @@ function SearchBox(name, resultsPath, inFrame, label)

// show search selection popup
searchSelectWindow.style.display='block';
//searchSelectWindow.style.left = left + 'px';
//searchSelectWindow.style.top = top + 'px';
searchSelectWindow.style.left = left + 'px';
searchSelectWindow.style.top = top + 'px';
}

// stop selection hide timer
Expand Down Expand Up @@ -177,10 +201,9 @@ function SearchBox(name, resultsPath, inFrame, label)
}
return;
}
else if (window.frames.MSearchResults.searchResults)
else
{
var elem = window.frames.MSearchResults.searchResults.NavNext(0);
if (elem) elem.focus();
window.frames.MSearchResults.postMessage("take_focus", "*");
}
}
else if (e.keyCode==27) // Escape out of the search field
Expand Down Expand Up @@ -341,7 +364,7 @@ function SearchBox(name, resultsPath, inFrame, label)
if (domPopupSearchResultsWindow.style.display!='block')
{
var domSearchBox = this.DOMSearchBox();
//this.DOMSearchClose().style.display = 'inline';
this.DOMSearchClose().style.display = 'inline-block';
if (this.insideFrame)
{
var domPopupSearchResults = this.DOMPopupSearchResults();
Expand All @@ -358,8 +381,8 @@ function SearchBox(name, resultsPath, inFrame, label)
var top = getYPos(domSearchBox) + 20; // domSearchBox.offsetHeight + 1;
domPopupSearchResultsWindow.style.display = 'block';
left -= domPopupSearchResults.offsetWidth;
//domPopupSearchResultsWindow.style.top = top + 'px';
//domPopupSearchResultsWindow.style.left = left + 'px';
domPopupSearchResultsWindow.style.top = top + 'px';
domPopupSearchResultsWindow.style.left = left + 'px';
}
}

Expand All @@ -386,13 +409,6 @@ function SearchBox(name, resultsPath, inFrame, label)
searchField.value = '';
this.searchActive = true;
}

$("#MSearchResults").mouseleave($.proxy(function() {
console.log("hellO");
this.DOMPopupSearchResultsWindow().style.display = 'none'
this.Activate(false);

},this));
}
else if (!isActive) // directly remove the panel
{
Expand Down Expand Up @@ -795,4 +811,4 @@ function init_search()
}
searchBox.OnSelectItem(0);
}

/* @license-end */
Loading

0 comments on commit f7ec249

Please sign in to comment.