1
0
mirror of https://github.com/oupala/apaxy.git synced 2025-09-15 01:22:22 +02:00

9 Commits
2.3.0 ... 2.4.0

Author SHA1 Message Date
oupala
e679a4ef41 chore: bump version from 2.4.0-dev to 2.4.0 2022-05-05 00:48:41 +02:00
Waqas Tariq
9debee6005 feat: filter auto select on key down
Filter input gets focus on keydown. On page back filter the list if input is not empty.
2022-05-05 00:47:23 +02:00
Waqas Tariq
ab93a07b3e fix: update styles
Fixed header icon position. Mouse hover effect. Link colors changed.
2022-05-05 00:47:16 +02:00
oupala
72a2c65bef chore: update lightgallery from version 2.1.5 to version 2.4.0 2022-05-04 23:39:33 +02:00
oupala
9b7e874d8a chore: master branch renamed to main 2022-04-25 01:23:38 +02:00
oupala
cb96aa8f14 docs: specify the AllowOverride statement to set 2021-09-16 01:54:08 +02:00
oupala
bbe754bf34 feat: prevent from suppressing HTML preamble
Improve .htaccess file to prevent from suppressing HTML preamble.

fix #149
2021-09-16 01:53:59 +02:00
oupala
6a20863e55 chore: update lightgallery from version 1.x to version 2.x
As lightgallery.js 1.x is not actively maintained, the team invite users to upgrade to version 2.
2021-09-16 01:52:32 +02:00
oupala
36f19d8345 chore: bump version from 2.3.0 to 2.4.0-dev 2021-04-23 15:28:50 +02:00
8 changed files with 61 additions and 8 deletions

View File

@@ -1,3 +1,18 @@
# [2.4.0](https://github.com/oupala/apaxy/compare/2.3.0...2.4.0) (2022-05-04)
### Bug Fixes
* update styles ([ab93a07](https://github.com/oupala/apaxy/commit/ab93a07b3e01032f8cbce5d266f5b49815edab1a))
### Features
* filter auto select on key down ([9debee6](https://github.com/oupala/apaxy/commit/9debee6005ab648d57da017c4f29c7fa507da6a8))
* prevent from suppressing HTML preamble ([bbe754b](https://github.com/oupala/apaxy/commit/bbe754bf34aa16bdfcac1a9c4cdcefbadbeacad8)), closes [#149](https://github.com/oupala/apaxy/issues/149)
# [2.3.0](https://github.com/oupala/apaxy/compare/2.2.0...2.3.0) (2021-04-23)

View File

@@ -27,7 +27,11 @@ Apaxy may be basic, but it gives you a great deal of creative freedom when styli
## Installation
apaxy requires an apache (2.2.11+) enabled http server.
apaxy requires an apache (2.2.11+) http server. The configuration of the apache http server have to set an `AllowOverride` statement for the Apaxy styled folder:
```apache
AllowOverride Options Indexes FileInfo
```
### Quick start
@@ -49,7 +53,7 @@ The files will be copied to the web server directory, and modified automatically
Let's assume you have a folder named `share` in your server root directory (the path thus being `http://mywebsite.com/share`) that you'd like to use as your listing directory:
- [download](https://github.com/oupala/apaxy/archive/master.zip) and unzip apaxy
- [download](https://github.com/oupala/apaxy/archive/main.zip) and unzip apaxy
- copy and paste the contents of the `/apaxy` folder to your `/share` folder
- edit `htaccess.txt` (now in the `/share` folder) and update all instances of paths marked with *{FOLDERNAME}* to point to your site root

View File

@@ -33,7 +33,7 @@
Options +Indexes
# index options
IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML
IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML -SuppressHTMLPreamble
# favicon & meta viewport
IndexHeadInsert "\

View File

@@ -60,6 +60,23 @@
document.addEventListener('readystatechange', function() {
if (document.readyState === 'complete') {
TableFilter.init();
var filterInput = document.getElementById('filter');
if ( filterInput.value.trim().length ){
filterInput.focus();
filterInput.dispatchEvent(new Event('input'));
}
}
});
// Use Keydown to get special keys like Backspace, Enter, Esc.
window.addEventListener('keydown', function (e) {
var filterInput = document.getElementById('filter');
var isFocused = (document.activeElement === filterInput);
if ( !isFocused && String.fromCharCode(e.keyCode).match(/(\w|\s)/g) ) {
filterInput.focus();
} else {
//pressed key is a non-char
//e.g. 'esc', 'backspace', 'up arrow'
}
});

View File

@@ -8,5 +8,5 @@
Apaxy by <a href="https://twitter.com/adamwhitcroft">@adamwhitcroft</a>
</div><!--/.footer-->
<script src={FOLDERNAME}/theme/apaxy.js></script>
<script src="https://cdn.jsdelivr.net/npm/lightgallery.js@1.1.3/dist/js/lightgallery.min.js" integrity="sha256-eoTGOrFW1o5KcmlIfJxlpOs0sMeGTy0/0rh/fGZEgNM=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/lightgallery@2.4.0/lightgallery.min.js" integrity="sha256-rJzhAjlCghJKSkx4mAv3VwVgxDSAbNM0AH7PhP4cDns=" crossorigin="anonymous"></script>
<script src={FOLDERNAME}/theme/apaxy-lightgallery.js></script>

View File

@@ -1,4 +1,4 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lightgallery.js@1.1.3/dist/css/lightgallery.min.css" integrity="sha256-oPZ2OUkKul2aJQeDwKoO1p+DpvFR+w17n7YXydvFRWU=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lightgallery@2.4.0/css/lightgallery-bundle.min.css" integrity="sha256-1gtpcmuOA//0xcazytnM9JqBM3mUDWgwqW1P9U+2/F8=" crossorigin="anonymous">
<div class="wrapper">
<!-- we open the `wrapper` element here, but close it in the `footer.html` file -->

View File

@@ -42,7 +42,7 @@ code {
}
a {
color: #000;
color: #333;
text-decoration: none;
}
@media (prefers-color-scheme: dark) {
@@ -61,11 +61,13 @@ a > img:hover {
}
a:hover {
color: #bababa;
color: #000;
}
@media (prefers-color-scheme: dark) {
a:hover {
color: #696969;
font-weight: bold;
}
}
@@ -145,6 +147,16 @@ tr {
border: 0;
}
tr.indexhead{
border-bottom: 2px solid #999;
}
tr:not(.indexhead):hover{
box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.25) inset;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.25) inset;
-moz-box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.25) inset;
}
th {
text-align: left;
font-size: .75em;
@@ -166,6 +178,11 @@ th + th + th + th {
width: 5%;
}
tr th:first-of-type {
padding-left: 10px;
padding-right: 10px;
}
tr td:first-of-type {
padding-left: 10px;
padding-right: 10px;

View File

@@ -1,6 +1,6 @@
{
"name": "apaxy",
"version": "2.3.0",
"version": "2.4.0",
"description": "A simple, customisable theme for your Apache directory listing.",
"main": "index.js",
"scripts": {