Skip to content

Commit

Permalink
Merge pull request #38189 from elpaso/server-landingpage
Browse files Browse the repository at this point in the history
Server landingpage
  • Loading branch information
elpaso committed Aug 11, 2020
2 parents 8fe4d3e + facfeb6 commit 779d218
Show file tree
Hide file tree
Showing 61 changed files with 20,658 additions and 93 deletions.
7 changes: 7 additions & 0 deletions python/server/auto_generated/qgsrequesthandler.sip.in
Expand Up @@ -116,6 +116,13 @@ Returns the request POST data (can be null)
QString url() const;
%Docstring
Returns the request url
%End

QString path() const;
%Docstring
Returns the path component of the request URL

.. versionadded:: 3.16
%End

void setStatusCode( int code );
Expand Down
55 changes: 55 additions & 0 deletions python/server/auto_generated/qgsserverstatichandler.sip.in
@@ -0,0 +1,55 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverstatichandler.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/


class QgsServerStaticHandler: QgsServerOgcApiHandler
{
%Docstring
The QgsServerStaticHandler class serves static files from the static path (resources/server/api/wfs3/static)

.. seealso:: :py:func:`QgsServerOgcApiHandler.staticPath`

.. versionadded:: 3.16
%End

%TypeHeaderCode
#include "qgsserverstatichandler.h"
%End
public:

QgsServerStaticHandler( const QString &pathRegExp = QStringLiteral( "/static/(?<staticFilePath>.*)$" ), const QString &staticPathSuffix = QString( ) );
%Docstring
Creates QgsServerStaticHandler

:param pathRegExp: optional regular expression to capture static file names, defaults to "/static/(?<staticFilePath>.*)$",
note that the file path is captured in a named group "staticFilePath"
:param staticPathSuffix: optional path suffix to use when static files are stored in a subdirectory of the default :py:func:`~QgsServerStaticHandler.staticPath`

.. seealso:: :py:func:`QgsServerOgcApiHandler.staticPath`
%End

virtual void handleRequest( const QgsServerApiContext &context ) const;


virtual QRegularExpression path() const;
virtual std::string operationId() const;
virtual std::string summary() const;
virtual std::string description() const;
virtual std::string linkTitle() const;
virtual QgsServerOgcApi::Rel linkType() const;

};


/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverstatichandler.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
1 change: 1 addition & 0 deletions python/server/server_auto.sip
Expand Up @@ -6,6 +6,7 @@
%Include auto_generated/qgsserverlogger.sip
%Include auto_generated/qgsserverogcapi.sip
%Include auto_generated/qgsserverogcapihandler.sip
%Include auto_generated/qgsserverstatichandler.sip
%Include auto_generated/qgsserverparameters.sip
%Include auto_generated/qgsserverquerystringparameter.sip
%Include auto_generated/qgsserversettings.sip
Expand Down
3 changes: 3 additions & 0 deletions resources/server/api/ogc/static/landingpage/README
@@ -0,0 +1,3 @@
Source code for the client HTML/JS code is available at:

https://github.com/elpaso/qgis-server-landing-page-plugin
@@ -0,0 +1 @@
.v-app-bar.v-app-bar--fixed,.v-footer{z-index:10000!important}

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.
1 change: 1 addition & 0 deletions resources/server/api/ogc/static/landingpage/index.html
@@ -0,0 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><link rel=icon href=/favicon.ico><title>app</title><link rel=stylesheet href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css><link href=/css/chunk-123bc409.8679d8ba.css rel=prefetch><link href=/css/chunk-144cd10c.61ac68ab.css rel=prefetch><link href=/css/chunk-4bb3b66a.82255eb1.css rel=prefetch><link href=/js/chunk-123bc409.ef3c4d35.js rel=prefetch><link href=/js/chunk-144cd10c.517e8bc2.js rel=prefetch><link href=/js/chunk-4bb3b66a.7a48f55d.js rel=prefetch><link href=/css/app.ca3f5643.css rel=preload as=style><link href=/css/chunk-vendors.a728f495.css rel=preload as=style><link href=/js/app.ca7d8a76.js rel=preload as=script><link href=/js/chunk-vendors.ebebb286.js rel=preload as=script><link href=/css/chunk-vendors.a728f495.css rel=stylesheet><link href=/css/app.ca3f5643.css rel=stylesheet></head><body><noscript><strong>We're sorry but app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.ebebb286.js></script><script src=/js/app.ca7d8a76.js></script></body></html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 779d218

Please sign in to comment.