[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\n**Desktop (please complete the following information):**\n - OS: [e.g. iOS]\n - Browser [e.g. chrome, safari]\n - Version [e.g. 22]\n\n**Smartphone (please complete the following information):**\n - Device: [e.g. iPhone6]\n - OS: [e.g. iOS8.1]\n - Browser [e.g. stock browser, safari]\n - Version [e.g. 22]\n\n**Additional context**\nAdd any other context about the problem here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\n\n---\n\n**Is your feature request related to a problem? Please describe.**\nA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]\n\n**Describe the solution you'd like**\nA clear and concise description of what you want to happen.\n\n**Describe alternatives you've considered**\nA clear and concise description of any alternative solutions or features you've considered.\n\n**Additional context**\nAdd any other context or screenshots about the feature request here.\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "content": "fixes #\n\n## proposed changes\n\n-\n-\n-\n\n"
  },
  {
    "path": ".gitignore",
    "content": "node_modules\n.DS_Store\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "## [2.5.1](https://github.com/oupala/apaxy/compare/2.5.0...2.5.1) (2024-10-09)\n\n\n### Bug Fixes\n\n* lightgallery feature ([c7a1221](https://github.com/oupala/apaxy/commit/c7a1221bc7d92f6611a2d80255b3634e7f42d945)), closes [#160](https://github.com/oupala/apaxy/issues/160)\n\n\n\n# [2.5.0](https://github.com/oupala/apaxy/compare/2.4.0...2.5.0) (2024-09-15)\n\n\n### Bug Fixes\n\n* Fixed typo in header ([cd741bc](https://github.com/oupala/apaxy/commit/cd741bcfc625b6120ff34c4d0b0147846aefb5d6))\n* remove useless code for fixing hrefs ([b7d7d2a](https://github.com/oupala/apaxy/commit/b7d7d2aeb861e2b553546d089271d80b32b8e9c3))\n* rendering on small (mobile) screens ([95ad6b9](https://github.com/oupala/apaxy/commit/95ad6b92be4eaa7b18394390bcc0a121d1342a88))\n* update the required Apache version in README ([9ed650a](https://github.com/oupala/apaxy/commit/9ed650a4effc47c1696530f2f4baed130340aa86))\n\n\n### Features\n\n* HEIC files and uppercase filenames for LightGallery ([b76dc3b](https://github.com/oupala/apaxy/commit/b76dc3be4aa596e6313c063d15124eb65fcdedaf))\n\n\n\n# [2.4.0](https://github.com/oupala/apaxy/compare/2.3.0...2.4.0) (2022-05-04)\n\n\n### Bug Fixes\n\n* update styles ([ab93a07](https://github.com/oupala/apaxy/commit/ab93a07b3e01032f8cbce5d266f5b49815edab1a))\n\n\n### Features\n\n* filter auto select on key down ([9debee6](https://github.com/oupala/apaxy/commit/9debee6005ab648d57da017c4f29c7fa507da6a8))\n* prevent from suppressing HTML preamble ([bbe754b](https://github.com/oupala/apaxy/commit/bbe754bf34aa16bdfcac1a9c4cdcefbadbeacad8)), closes [#149](https://github.com/oupala/apaxy/issues/149)\n\n\n\n# [2.3.0](https://github.com/oupala/apaxy/compare/2.2.0...2.3.0) (2021-04-23)\n\n\n### Bug Fixes\n\n* fix the doctype in the error pages ([0c75e64](https://github.com/oupala/apaxy/commit/0c75e64761939b1b1f02ae08a74bb64772bc4ac0))\n* improve the way Faenza icons are embedded ([060d547](https://github.com/oupala/apaxy/commit/060d5478e46864fdc185e4c29db8d2cfe99eae93)), closes [#143](https://github.com/oupala/apaxy/issues/143)\n* use <div class=\"center\"> instead of <center> ([3bba904](https://github.com/oupala/apaxy/commit/3bba904d33fd4139b2e31f721612484590063cfa))\n\n\n### Features\n\n* switch to GPLv3 licence ([86fc8ee](https://github.com/oupala/apaxy/commit/86fc8ee74db4542f62bc342d960344838bfaf6b2)), closes [#148](https://github.com/oupala/apaxy/issues/148)\n\n\n\n# [2.2.0](https://github.com/oupala/apaxy/compare/2.1.3...2.2.0) (2020-03-19)\n\n\n### Bug Fixes\n\n* **doc:** fix links in table of content ([cc02ee5](https://github.com/oupala/apaxy/commit/cc02ee5e65359a95315d7d848589d4f4b05b8e14))\n* favicon not being loaded when using Apaxy in a subdirectory ([b9c2521](https://github.com/oupala/apaxy/commit/b9c25218f177b22ba0590706692d47f54986cd0d))\n\n\n### Features\n\n* optimize icons ([49289c4](https://github.com/oupala/apaxy/commit/49289c439cd032a95a4be93e1eb74f0fc7e821ef))\n* **theme:** add a proper dark mode (and globally improve CSS styles) ([301c932](https://github.com/oupala/apaxy/commit/301c9329af1ceea467b786ce287ae5557a08002b))\n\n\n\n## [2.1.3](https://github.com/oupala/apaxy/compare/2.1.2...2.1.3) (2019-07-18)\n\n\n### Bug Fixes\n\n* remove useless js ([afa2e51](https://github.com/oupala/apaxy/commit/afa2e51)), closes [#132](https://github.com/oupala/apaxy/issues/132)\n\n\n\n## [2.1.2](https://github.com/oupala/apaxy/compare/2.1.1...2.1.2) (2019-06-04)\n\n\n### Bug Fixes\n\n* add gif extension to image gallery viewer ([5668b92](https://github.com/oupala/apaxy/commit/5668b92))\n\n\n\n## [2.1.1](https://github.com/oupala/apaxy/compare/2.1.0...2.1.1) (2019-06-03)\n\n\n### Bug Fixes\n\n* improve cli parameters management ([8ca6129](https://github.com/oupala/apaxy/commit/8ca6129))\n\n\n\n# [2.1.0](https://github.com/oupala/apaxy/compare/2.0.1...2.1.0) (2019-05-30)\n\n\n### Features\n\n* install script can set a header and a footer message ([8f85f2c](https://github.com/oupala/apaxy/commit/8f85f2c))\n\n\n\n## [2.0.1](https://github.com/oupala/apaxy/compare/2.0.0...2.0.1) (2019-05-30)\n\n\n### Bug Fixes\n\n* make the script apaxy-configure.sh more robust ([367722a](https://github.com/oupala/apaxy/commit/367722a))\n\n\n\n# [2.0.0](https://github.com/oupala/apaxy/compare/1.0.0...2.0.0) (2019-05-29)\n\n\n### Bug Fixes\n\n* filter content works again ([f8670f0](https://github.com/oupala/apaxy/commit/f8670f0)), closes [#125](https://github.com/oupala/apaxy/issues/125)\n* invalid links from the root folder ([04b185d](https://github.com/oupala/apaxy/commit/04b185d))\n* remove a minor typo in the Dockerfile ([08446fb](https://github.com/oupala/apaxy/commit/08446fb))\n* remove dependency to font Open Sans ([bb8503b](https://github.com/oupala/apaxy/commit/bb8503b)), closes [#59](https://github.com/oupala/apaxy/issues/59) [#59](https://github.com/oupala/apaxy/issues/59)\n* remove the leading slash before {FOLDERNAME} ([17475e1](https://github.com/oupala/apaxy/commit/17475e1))\n* rename htaccess.txt in theme directory ([05ba73c](https://github.com/oupala/apaxy/commit/05ba73c))\n* title and paths in error pages ([2eeb079](https://github.com/oupala/apaxy/commit/2eeb079))\n\n\n### Features\n\n* **css:** responsive design for small screen ([4471ec1](https://github.com/oupala/apaxy/commit/4471ec1)), closes [#29](https://github.com/oupala/apaxy/issues/29)\n* add a breadcrumb ([33d4777](https://github.com/oupala/apaxy/commit/33d4777))\n* add a favicon ([b393699](https://github.com/oupala/apaxy/commit/b393699)), closes [#128](https://github.com/oupala/apaxy/issues/128)\n* add ebooks to supported filetypes ([1164a1b](https://github.com/oupala/apaxy/commit/1164a1b))\n* add install script with instructions ([23f3b8e](https://github.com/oupala/apaxy/commit/23f3b8e))\n* add lightgallery as lightbox gallery ([cc36486](https://github.com/oupala/apaxy/commit/cc36486)), closes [#89](https://github.com/oupala/apaxy/issues/89)\n* Add styled error pages ([0e69f5d](https://github.com/oupala/apaxy/commit/0e69f5d))\n* css styling for breadcrumb ([4d61aab](https://github.com/oupala/apaxy/commit/4d61aab))\n* docker image ([f2a8144](https://github.com/oupala/apaxy/commit/f2a8144))\n* replace lightGallery by lightgallery.js ([a1cfdd3](https://github.com/oupala/apaxy/commit/a1cfdd3))\n\n\n\n<a name=\"1.0.0\"></a>\n# 1.0.0 (2018-02-21)\n\n\n### Features\n\n* Although it is a quite old piece of software (2012), here is the first release of apaxy.\n\n\n\n"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as\ncontributors and maintainers pledge to making participation in our project and\nour community a harassment-free experience for everyone, regardless of age, body\nsize, disability, ethnicity, sex characteristics, gender identity and expression,\nlevel of experience, education, socio-economic status, nationality, personal\nappearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment\ninclude:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or\n  advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic\n  address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a\n  professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable\nbehavior and are expected to take appropriate and fair corrective action in\nresponse to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or\nreject comments, commits, code, wiki edits, issues, and other contributions\nthat are not aligned to this Code of Conduct, or to ban temporarily or\npermanently any contributor for other behaviors that they deem inappropriate,\nthreatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces\nwhen an individual is representing the project or its community. Examples of\nrepresenting a project or community include using an official project e-mail\naddress, posting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event. Representation of a project may be\nfurther defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported by contacting the project team at <contact@apaxy.33mail.com>. All\ncomplaints will be reviewed and investigated and will result in a response that\nis deemed necessary and appropriate to the circumstances. The project team is\nobligated to maintain confidentiality with regard to the reporter of an incident.\nFurther details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good\nfaith may face temporary or permanent repercussions as determined by other\nmembers of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,\navailable at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html\n\n[homepage]: https://www.contributor-covenant.org\n\nFor answers to common questions about this code of conduct, see\nhttps://www.contributor-covenant.org/faq\n\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# Contributing to apaxy\n\nFirst and foremost, thank you! We appreciate that you want to contribute\nto apaxy, your time is valuable, and your contributions mean a lot to us.\n\n## Important!\n\nBy contributing to this project, you:\n\n- Agree that you have authored 100% of the content\n- Agree that you have the necessary rights to the content\n- Agree that you have received the necessary permissions from your\nemployer to make the contributions (if applicable)\n- Agree that the content you contribute may be provided under the\nProject license(s)\n\n## Getting started\n\n**What does \"contributing\" mean?**\n\nCreating an issue is the simplest form of contributing to a project. Creating a\nmerge reques is more efficient form of contributing. But there are many ways to\ncontribute, including the following:\n\n- Updating or correcting documentation\n- Feature requests\n- Bug reports\n\nIf you'd like to learn more about contributing in general, the [Guide to\nIdiomatic\nContributing](https://github.com/jonschlinkert/idiomatic-contributing)\nhas a lot of useful information.\n\n**Showing support for apaxy**\n\nPlease keep in mind that open source software is built by people like\nyou, who spend their free time creating things the rest the community\ncan use.\n\nDon't have time to contribute? No worries, here are some other ways to\nshow your support for apaxy:\n\n- star the [project](https://github.com/oupala/apaxy)\n- tweet your support for apaxy\n\n## Issues\n\n### Before creating an issue\n\nPlease try to determine if the issue is caused by an underlying library,\nand if so, create the issue there. Sometimes this is difficult to know.\nWe only ask that you attempt to give a reasonable attempt to find out.\nOftentimes the readme will have advice about where to go to create issues.\n\nTry to follow these guidelines\n\n- **Investigate the issue**:\n- **Check the readme** - oftentimes you will find notes about creating\nissues, and where to go depending on the type of issue\n- Create the issue in the appropriate repository\n\n### Creating an issue\n\nPlease be as descriptive as possible when creating an issue. Give us the\ninformation we need to successfully answer your question or address your\nissue by answering the following in your issue:\n\n- **version**: please note the version of apaxy are you using\n- **extensions, plugins, helpers, etc** (if applicable): please list any\nextensions you're using\n- **error messages**: please paste any error messages into the issue, or\na [gist](https://gist.github.com/)\n\n### Closing issues\n\nThe original poster or the maintainer's of apaxy may close an issue at\nany time. Typically, but not exclusively, issues are closed when:\n\n- The issue is resolved\n- The project's maintainers have determined the issue is out of scope\n- An issue is clearly a duplicate of another issue, in which case the\nduplicate issue will be linked\n- A discussion has clearly run its course\n\n\n## Pull requests\n\n### Before creating a merge request\n\nPlease try to determine if the issue is caused by an underlying library,\nand if so, create the merge request there. Sometimes this is difficult to know.\nWe only ask that you attempt to give a reasonable attempt to find out.\nOftentimes the readme will have advice about where to go to create merge\nrequests.\n\nTry to follow these guidelines\n\n- **Investigate the issue**:\n- **Check the readme** - oftentimes you will find notes about creating\nissues, and where to go depending on the type of issue\n- Create the merge request in the appropriate repository\n\n### Creating a merge request\n\nPlease be as descriptive as possible when creating a merge request. Give us the\ninformation we need to successfully understand what you want to change or to add\nto apaxy. Create the merge request as soon as possible so that the discussion\naround your changes can start at the beginning of your work, not when it's over\nand you don't time anymore to discuss it.\n\n### Closing merge requests\n\nThe original poster or the maintainer's of apaxy may close a merge request at\nany time. Typically, but not exclusively, issues are closed when:\n\n- The merge request has conflict with the develop branch that makes it difficult\nto merge without a hard work\n- The commit message of each commit of the merge request does not follow the\n[conventional commits](https://www.conventionalcommits.org/) standard\n- The project's maintainers have determined the merge request is out of scope\n- A merge request is clearly a duplicate of another merge request, in which case\nthe duplicate merge request will be linked\n- A discussion has clearly run its course\n\n\n## Next steps\n\n**Tips for creating idiomatic issues**\n\nSpending just a little extra time to review best practices and brush up\non your contributing skills will, at minimum, make your issue easier to\nread, easier to resolve, and more likely to be found by others who have\nthe same or similar issue in the future. At best, it will open up doors\nand potential career opportunities by helping you be at your best.\n\nThe following resources were hand-picked to help you be the most\neffective contributor you can be:\n\n- The [Guide to Idiomatic\nContributing](https://github.com/jonschlinkert/idiomatic-contributing)\nis a great place for newcomers to start, but there is also information\nfor experienced contributors there\n- Take some time to learn basic markdown. We can't stress this enough.\nDon't start pasting code into GitHub issues before you've taken a moment\nto review this [markdown\ncheatsheet](https://gist.github.com/jonschlinkert/5854601)\n- The GitHub guide to [basic\nmarkdown](https://help.github.com/articles/markdown-basics/) is another\ngreat markdown resource\n- Learn about [GitHub Flavored\nMarkdown](https://help.github.com/articles/github-flavored-markdown/).\nAnd if you want to really go above and beyond, read [mastering\nmarkdown](https://guides.github.com/features/mastering-markdown/)\n\nAt the very least, please try to:\n\n- Use backticks to wrap code. This ensures that it retains its\nformatting and isn't modified when it's rendered by GitHub, and makes\nthe code more readable to others\n- When applicable, use syntax highlighting by adding the correct\nlanguage name after the first \"code fence\"\n"
  },
  {
    "path": "COPYING.md",
    "content": "### GNU GENERAL PUBLIC LICENSE\n\nVersion 3, 29 June 2007\n\nCopyright (C) 2007 Free Software Foundation, Inc.\n<https://fsf.org/>\n\nEveryone is permitted to copy and distribute verbatim copies of this\nlicense document, but changing it is not allowed.\n\n### Preamble\n\nThe GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\nThe licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nthe GNU General Public License is intended to guarantee your freedom\nto share and change all versions of a program--to make sure it remains\nfree software for all its users. We, the Free Software Foundation, use\nthe GNU General Public License for most of our software; it applies\nalso to any other work released this way by its authors. You can apply\nit to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights. Therefore, you\nhave certain responsibilities if you distribute copies of the\nsoftware, or if you modify it: responsibilities to respect the freedom\nof others.\n\nFor example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received. You must make sure that they, too, receive\nor can get the source code. And you must show them these terms so they\nknow their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software. For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\nSome devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the\nmanufacturer can do so. This is fundamentally incompatible with the\naim of protecting users' freedom to change the software. The\nsystematic pattern of such abuse occurs in the area of products for\nindividuals to use, which is precisely where it is most unacceptable.\nTherefore, we have designed this version of the GPL to prohibit the\npractice for those products. If such problems arise substantially in\nother domains, we stand ready to extend this provision to those\ndomains in future versions of the GPL, as needed to protect the\nfreedom of users.\n\nFinally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish\nto avoid the special danger that patents applied to a free program\ncould make it effectively proprietary. To prevent this, the GPL\nassures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and\nmodification follow.\n\n### TERMS AND CONDITIONS\n\n#### 0. Definitions.\n\n\"This License\" refers to version 3 of the GNU General Public License.\n\n\"Copyright\" also means copyright-like laws that apply to other kinds\nof works, such as semiconductor masks.\n\n\"The Program\" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as \"you\". \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\nTo \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of\nan exact copy. The resulting work is called a \"modified version\" of\nthe earlier work or a work \"based on\" the earlier work.\n\nA \"covered work\" means either the unmodified Program or a work based\non the Program.\n\nTo \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\nTo \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user\nthrough a computer network, with no transfer of a copy, is not\nconveying.\n\nAn interactive user interface displays \"Appropriate Legal Notices\" to\nthe extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n#### 1. Source Code.\n\nThe \"source code\" for a work means the preferred form of the work for\nmaking modifications to it. \"Object code\" means any non-source form of\na work.\n\nA \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\nThe \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\nThe \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can\nregenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same\nwork.\n\n#### 2. Basic Permissions.\n\nAll rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not convey,\nwithout conditions so long as your license otherwise remains in force.\nYou may convey covered works to others for the sole purpose of having\nthem make modifications exclusively for you, or provide you with\nfacilities for running those works, provided that you comply with the\nterms of this License in conveying all material for which you do not\ncontrol copyright. Those thus making or running the covered works for\nyou must do so exclusively on your behalf, under your direction and\ncontrol, on terms that prohibit them from making any copies of your\ncopyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the\nconditions stated below. Sublicensing is not allowed; section 10 makes\nit unnecessary.\n\n#### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\nNo covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\nWhen you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such\ncircumvention is effected by exercising rights under this License with\nrespect to the covered work, and you disclaim any intention to limit\noperation or modification of the work as a means of enforcing, against\nthe work's users, your or third parties' legal rights to forbid\ncircumvention of technological measures.\n\n#### 4. Conveying Verbatim Copies.\n\nYou may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n#### 5. Conveying Modified Source Versions.\n\nYou may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these\nconditions:\n\n-   a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n-   b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under\n    section 7. This requirement modifies the requirement in section 4\n    to \"keep intact all notices\".\n-   c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy. This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged. This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n-   d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\nA compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n#### 6. Conveying Non-Source Forms.\n\nYou may convey a covered work in object code form under the terms of\nsections 4 and 5, provided that you also convey the machine-readable\nCorresponding Source under the terms of this License, in one of these\nways:\n\n-   a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n-   b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the Corresponding\n    Source from a network server at no charge.\n-   c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source. This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n-   d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge. You need not require recipients to copy the\n    Corresponding Source along with the object code. If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source. Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n-   e) Convey the object code using peer-to-peer transmission,\n    provided you inform other peers where the object code and\n    Corresponding Source of the work are being offered to the general\n    public at no charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\nA \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal,\nfamily, or household purposes, or (2) anything designed or sold for\nincorporation into a dwelling. In determining whether a product is a\nconsumer product, doubtful cases shall be resolved in favor of\ncoverage. For a particular product received by a particular user,\n\"normally used\" refers to a typical or common use of that class of\nproduct, regardless of the status of the particular user or of the way\nin which the particular user actually uses, or expects or is expected\nto use, the product. A product is a consumer product regardless of\nwhether the product has substantial commercial, industrial or\nnon-consumer uses, unless such uses represent the only significant\nmode of use of the product.\n\n\"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to\ninstall and execute modified versions of a covered work in that User\nProduct from a modified version of its Corresponding Source. The\ninformation must suffice to ensure that the continued functioning of\nthe modified object code is in no case prevented or interfered with\nsolely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\nThe requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or\nupdates for a work that has been modified or installed by the\nrecipient, or for the User Product in which it has been modified or\ninstalled. Access to a network may be denied when the modification\nitself materially and adversely affects the operation of the network\nor violates the rules and protocols for communication across the\nnetwork.\n\nCorresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n#### 7. Additional Terms.\n\n\"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders\nof that material) supplement the terms of this License with terms:\n\n-   a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n-   b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n-   c) Prohibiting misrepresentation of the origin of that material,\n    or requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n-   d) Limiting the use for publicity purposes of names of licensors\n    or authors of the material; or\n-   e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n-   f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions\n    of it) with contractual assumptions of liability to the recipient,\n    for any liability that these contractual assumptions directly\n    impose on those licensors and authors.\n\nAll other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions; the\nabove requirements apply either way.\n\n#### 8. Termination.\n\nYou may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\nHowever, if you cease all violation of this License, then your license\nfrom a particular copyright holder is reinstated (a) provisionally,\nunless and until the copyright holder explicitly and finally\nterminates your license, and (b) permanently, if the copyright holder\nfails to notify you of the violation by some reasonable means prior to\n60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\nTermination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n#### 9. Acceptance Not Required for Having Copies.\n\nYou are not required to accept this License in order to receive or run\na copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n#### 10. Automatic Licensing of Downstream Recipients.\n\nEach time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\nAn \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n#### 11. Patents.\n\nA \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor's \"contributor version\".\n\nA contributor's \"essential patent claims\" are all patent claims owned\nor controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\nIn the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\nA patent license is \"discriminatory\" if it does not include within the\nscope of its coverage, prohibits the exercise of, or is conditioned on\nthe non-exercise of one or more of the rights that are specifically\ngranted under this License. You may not convey a covered work if you\nare a party to an arrangement with a third party that is in the\nbusiness of distributing software, under which you make payment to the\nthird party based on the extent of your activity of conveying the\nwork, and under which the third party grants, to any of the parties\nwho would receive the covered work from you, a discriminatory patent\nlicense (a) in connection with copies of the covered work conveyed by\nyou (or copies made from those copies), or (b) primarily for and in\nconnection with specific products or compilations that contain the\ncovered work, unless you entered into that arrangement, or that patent\nlicense was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n#### 12. No Surrender of Others' Freedom.\n\nIf conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under\nthis License and any other pertinent obligations, then as a\nconsequence you may not convey it at all. For example, if you agree to\nterms that obligate you to collect a royalty for further conveying\nfrom those to whom you convey the Program, the only way you could\nsatisfy both those terms and this License would be to refrain entirely\nfrom conveying the Program.\n\n#### 13. Use with the GNU Affero General Public License.\n\nNotwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n#### 14. Revised Versions of this License.\n\nThe Free Software Foundation may publish revised and/or new versions\nof the GNU General Public License from time to time. Such new versions\nwill be similar in spirit to the present version, but may differ in\ndetail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program\nspecifies that a certain numbered version of the GNU General Public\nLicense \"or any later version\" applies to it, you have the option of\nfollowing the terms and conditions either of that numbered version or\nof any later version published by the Free Software Foundation. If the\nProgram does not specify a version number of the GNU General Public\nLicense, you may choose any version ever published by the Free\nSoftware Foundation.\n\nIf the Program specifies that a proxy can decide which future versions\nof the GNU General Public License can be used, that proxy's public\nstatement of acceptance of a version permanently authorizes you to\nchoose that version for the Program.\n\nLater license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n#### 15. Disclaimer of Warranty.\n\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT\nWARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND\nPERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE\nDEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR\nCORRECTION.\n\n#### 16. Limitation of Liability.\n\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR\nCONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES\nARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT\nNOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR\nLOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM\nTO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER\nPARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n#### 17. Interpretation of Sections 15 and 16.\n\nIf the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\n### How to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these\nterms.\n\nTo do so, attach the following notices to the program. It is safest to\nattach them to the start of each source file to most effectively state\nthe exclusion of warranty; and each file should have at least the\n\"copyright\" line and a pointer to where the full notice is found.\n\n        <one line to give the program's name and a brief idea of what it does.>\n        Copyright (C) <year>  <name of author>\n\n        This program is free software: you can redistribute it and/or modify\n        it under the terms of the GNU General Public License as published by\n        the Free Software Foundation, either version 3 of the License, or\n        (at your option) any later version.\n\n        This program is distributed in the hope that it will be useful,\n        but WITHOUT ANY WARRANTY; without even the implied warranty of\n        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n        GNU General Public License for more details.\n\n        You should have received a copy of the GNU General Public License\n        along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper\nmail.\n\nIf the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n        <program>  Copyright (C) <year>  <name of author>\n        This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n        This is free software, and you are welcome to redistribute it\n        under certain conditions; type `show c' for details.\n\nThe hypothetical commands \\`show w' and \\`show c' should show the\nappropriate parts of the General Public License. Of course, your\nprogram's commands might be different; for a GUI interface, you would\nuse an \"about box\".\n\nYou should also get your employer (if you work as a programmer) or\nschool, if any, to sign a \"copyright disclaimer\" for the program, if\nnecessary. For more information on this, and how to apply and follow\nthe GNU GPL, see <https://www.gnu.org/licenses/>.\n\nThe GNU General Public License does not permit incorporating your\nprogram into proprietary programs. If your program is a subroutine\nlibrary, you may consider it more useful to permit linking proprietary\napplications with the library. If this is what you want to do, use the\nGNU Lesser General Public License instead of this License. But first,\nplease read <https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "Dockerfile",
    "content": "# bash docker image will be used for configuring apaxy\nFROM bash\n\n# set apaxyPath to the path where you want apaxy to be installed\n# by default, apaxy will be available at \"/\" (web root)\nARG apaxyPath=\"\"\n\n# copy apaxy and proceed to configuration\nWORKDIR /\nCOPY . /\nRUN bash apaxy-configure.sh -w \"${apaxyPath}\"\n\n# httpd docker image will be used for running apaxy\nFROM httpd:2.4\n\n# set apaxyPath to the path where you want apaxy to be installed\n# by default, apaxy will be available at \"/\" (web root)\nARG apaxyPath=\"\"\n\n# image labels and description\nLABEL name=\"apaxy\" \\\n      description=\"Apaxy is a customisable theme built to enhance the experience of browsing web directories. It uses the mod_autoindex Apache module — and some CSS — to override the default style of a directory listing\" \\\n      maintainer=\"Ploc\" \\\n      url=\"https://oupala.github.io/apaxy/\"\n\n# remove index.html file from original httpd image\nRUN rm /usr/local/apache2/htdocs/index.html\n\n# enable apache config to be overridden by .htaccess files\nRUN sed -i '/<Directory \"\\/usr\\/local\\/apache2\\/htdocs\">/,/<\\/Directory>/ s/AllowOverride None/AllowOverride Options Indexes FileInfo/' /usr/local/apache2/conf/httpd.conf\n\n# define apache listen port on a port greater than 1024 to allow a non-root user to start apache\nRUN sed -i 's/Listen\\ 80/Listen\\ 8080/g' /usr/local/apache2/conf/httpd.conf\nEXPOSE 8080\n\n# create 'me' group whith gid 1000 and 'me' user in this group with uid 1000\n# see https://docs.openshift.com/enterprise/3.2/creating_images/guidelines.html#use-uid\nRUN groupadd -f -g 1000 me && \\\n    useradd -u 1000 -g me me\n\n# copy apaxy directory\nCOPY --from=0 /var/www/html${apaxyPath} /usr/local/apache2/htdocs${apaxyPath}\n\nWORKDIR /usr/local/apache2/htdocs${apaxyPath}\nRUN for file_extension in 3dml 3ds 3g2 3gp 7z aac adp ai aif aifc aiff apk appcache asf asm asx atom au avi azw bat bin bmp bpk btif bz bz2 c cab caf cb7 cba cbr cbt cbz cc cgm class cmx com conf cpp css csv curl cxx dcurl deb def deploy dic diff dist distz djv djvu dll dmg dms doc docx dot dra dsc dtd dts dtshd dump dvb dwg dxf ecelp4800 ecelp7470 ecelp9600 elc eol eps epub etx exe f f4v f77 f90 fbs fh fh4 fh5 fh7 fhc flac fli flv flx fly for fpx fst fvt g3 gif gv gz gzip h h261 h263 h264 hh hpp htm html ico ics ief ifb in iso jad jar java jpe jpeg jpg jpgm jpgv jpm js json kar ktx latex list log lrf lvp m1v m2a m2v m3a m3u m3u8 m4a m4u m4v Makefile man mar markdown mcurl md mdb mdi me mid midi mj2 mjp2 mk3d mka mks mkv mmr mng mobi mov movie mp2 mp2a mp3 mp4 mp4a mp4v mpe mpeg mpg mpg4 mpga mpkg ms msi mxu n3 nfo npx odb odc odf odft odg odi odm odp ods odt oga ogg ogv opml otc otf otg oth oti otp ots ott p pas patch pbm pct pcx pdf pgm php phtml pic pkg pls png pnm pot ppm pps ppsx ppt pptx prc ps psd py pya pyv qt ra ram rar ras rb README rgb rip rlc rmi rmp roff rpm rss rtf rtx s s3m sass scss scurl sfv sgi sgm sgml sh sid sil smv snd so spot spx sql sub svg svgz t tar tex text tga tif tiff torrent tr tsv ttc ttf ttl txt udeb uri uris urls uu uva uvg uvh uvi uvm uvp uvs uvu uvv uvva uvvg uvvh uvvi uvvm uvvp uvvs uvvu uvvv vcard vcf vcs viv vob wav wax wbmp wdp weba webm webp wm wma wml wmls wmv wmx woff woff2 wvx xbm xcf xht xhtml xif xla xlc xlm xls xlsx xlt xlw xm xml xpm xwd xsl zip; do touch example.${file_extension}; done\nRUN touch README\n\n# allow user 'me' to read apache's files\nRUN chown -R me:root /usr/local/apache2/ && \\\n    chmod -R g+rwX /usr/local/apache2/\n\n# start container as me\nUSER me\n"
  },
  {
    "path": "README.md",
    "content": "# Apaxy\n\napaxy is a customisable theme built to enhance the experience of browsing web directories. It uses the `mod_autoindex` Apache module - and some css - to override the default style of a directory listing.\n\n## Table of contents\n\n- [features](#features)\n- [installation](#installation)\n- [docker image](#docker-image)\n- [apaxy themes](#apaxy-themes)\n- [media types](#media-types)\n- [gallery](#gallery)\n- [troubleshooting](#troubleshooting)\n- [credits](#credits)\n\n## Features\n\nApaxy may be basic, but it gives you a great deal of creative freedom when styling your directory.\n\n- style your directory listing with css\n- make it pop with javascript\n- add welcome messages, download instructions or copyright notices\n- add custom media type icons (requires editing the `.htaccess` file)\n- use custom error pages\n\n*Sadly, visual style is all you can work with. It's not possible to alter the generated table structure of the listing directory with Apaxy.*\n\n## Installation\n\napaxy requires an apache (2.4+) http server. The configuration of the apache http server have to set an `AllowOverride` statement for the Apaxy styled folder:\n\n```apache\nAllowOverride Options Indexes FileInfo\n```\n\n### Quick start\n\nIf you would like, you can automate the installation of Apaxy with the included `apaxy-configure.sh` script.\n\nTo get started, first open `apaxy.config` in your favorite editor, then edit the `apacheWebRootPath` and `installWebPath` variables to correspond to your server's settings. Save the file and exit.\n\nYou can set some parameters of `apaxy.config` on the command line instead of the config file. You can see the documentation of the cli with the following command: `apaxy-configure.sh -h`.\n\nThen run the configuration script as a user that can write to the `installWebPath` directory. With apache under debian, this would be the `www-data` user:\n\n```bash\n$ sudo -u www-data ./apaxy-configure.sh\n```\n\nThe files will be copied to the web server directory, and modified automatically based on the settings specified.\n\n### Manual install\n\nLet'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:\n\n- [download](https://github.com/oupala/apaxy/archive/main.zip) and unzip apaxy\n- copy and paste the contents of the `/apaxy` folder to your `/share` folder\n- edit `htaccess.txt` (now in the `/share` folder) and update all instances of paths marked with *{FOLDERNAME}* to point to your site root\n\nSo...\n\n```apache\nAddIconByType (gif,{FOLDERNAME}/theme/icons/gif.png) image/gif\n```\n\nShould be changed to...\n\n```apache\nAddIconByType (gif,/share/theme/icons/gif.png) image/gif\n```\n\n- if you want to enable the [gallery](#gallery) feature, overwrite the header and footer files:\n\n```bash\nmv footer-lightgallery.html footer.html\nmv header-lightgallery.html header.html\n```\n\n- edit `footer.html`, along with all the other `html` documents (in the `/share/theme` folder) and update all instances of paths marked with *{FOLDERNAME}* to point to your site root\n\nSo...\n\n```html\n<script src={FOLDERNAME}/theme/apaxy.js></script>\n```\n\nShould be changed to...\n\n```html\n<script src=/share/theme/apaxy.js></script>\n```\n\n- once done, rename `htaccess.txt` to `.htaccess` in the `/share` directory\n- [treat yo'self](http://25.media.tumblr.com/tumblr_lw7q28y0Mz1qanm80o1_500.gif), you're done!\n\n## Docker image\n\nA [local Demo](http://localhost:8080) can be started with docker.\n\n```bash\ndocker-compose up\n```\n\n## Apaxy themes\n\nIf you'd like to alter the default Apaxy theme, look in the `/theme` folder and you'll find the following files:\n\n- `header.html`\n- `footer.html`\n- `style.css`\n\nEdit these as you would any other html or css file.\n\nAdding your own icons is a little more involved. You'll need to edit the main Apaxy `.htaccess` file. Look for the following as an example:\n\n```apache\nAddIconByType (gif,{FOLDERNAME}/theme/icons/gif.png) image/gif\n```\n\nThe above rule will assign an icon named `gif.png` from the directory `{FOLDERNAME}/theme/icons/` to any file whose media type is `image/gif`.\n\nThis url path is relative to your site's root.\n\n## Media types\n\nThe default apaxy theme `/themes/apaxy` has icons in place for the following media types:\n\n3dml 3ds 3g2 3gp 7z aac adp ai aif aifc aiff apk appcache asf asm asx atom au avi azw bat bin bmp bpk btif bz bz2 c cab caf cb7 cba cbr cbt cbz cc cgm class cmx com conf cpp css csv curl cxx dcurl deb def deploy dic diff dist distz djv djvu dll dmg dms doc docx dot dra dsc dtd dts dtshd dump dvb dwg dxf ecelp4800 ecelp7470 ecelp9600 elc eol eps epub etx exe f f4v f77 f90 fbs fh fh4 fh5 fh7 fhc flac fli flv flx fly for fpx fst fvt g3 gif gv gz gzip h h261 h263 h264 hh hpp htm html ico ics ief ifb in iso jad jar java jpe jpeg jpg jpgm jpgv jpm js json kar ktx latex list log lrf lvp m1v m2a m2v m3a m3u m3u8 m4a m4u m4v Makefile man mar markdown mcurl md mdb mdi me mid midi mj2 mjp2 mk3d mka mks mkv mmr mng mobi mov movie mp2 mp2a mp3 mp4 mp4a mp4v mpe mpeg mpg mpg4 mpga mpkg ms msi mxu n3 nfo npx odb odc odf odft odg odi odm odp ods odt oga ogg ogv opml otc otf otg oth oti otp ots ott p pas patch pbm pct pcx pdf pgm php phtml pic pkg pls png pnm pot ppm pps ppsx ppt pptx prc ps psd py pya pyv qt ra ram rar ras rb README rgb rip rlc rmi rmp roff rpm rss rtf rtx s s3m sass scss scurl sfv sgi sgm sgml sh sid sil smv snd so spot spx sql sub svg svgz t tar tex text tga tif tiff torrent tr tsv ttc ttf ttl txt udeb uri uris urls uu uva uvg uvh uvi uvm uvp uvs uvu uvv uvva uvvg uvvh uvvi uvvm uvvp uvvs uvvu uvvv vcard vcf vcs viv vob wav wax wbmp wdp weba webm webp wm wma wml wmls wmv wmx woff woff2 wvx xbm xht xhtml xif xla xlc xlm xls xlsx xlt xlw xm xml xpmxwd xsl zip\n\n## Gallery\n\nYou can enable a gallery feature on apaxy. This feature is based on [lightgallery.js](https://sachinchoolur.github.io/lightgallery.js/).\n\nSee [installation](#installation) section for more information.\n\n## Troubleshooting\n\nMake sure the options set in `.htaccess` files of Apaxy can actually be changed. This means that you need to allow to override the used options in your apache configuration of the directory apaxy used with: `AllowOverride Indexes`.\n\nFind more information in the in the [apache documentation](https://httpd.apache.org/docs/current/mod/core.html#allowoverride).\n\n## Credits\n\napaxy owes its existence to the amazing [h5ai](http://larsjung.de/h5ai/) by [Lars Jung](https://twitter.com/lrsjng). Had I not seen this, I would never have looked into making my own (probably way less useful) version.\n\n[Faenza icons](http://tiheum.deviantart.com/art/Faenza-Icons-173323228) are used in the `apaxy` theme. [Faenza icon theme](https://code.google.com/archive/p/faenza-icon-theme/) has been released under GPLv3 licence.\n\n## Licence\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n"
  },
  {
    "path": "apaxy/htaccess.txt",
    "content": "#\n# apaxy\n# Copyright (C) 2021 @adamwhitcroft\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n#\n\n#\n# for a full breakdown of the mod_autoindex module:\n# http://apache.org/docs/2.4/mod/mod_autoindex.html\n#\n\n#\n# official media types list from IANA\n# https://www.iana.org/assignments/media-types/media-types.xhtml\n#\n# media types included in apache\n# https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types\n#\n\n# enable indexing\nOptions +Indexes\n\n# index options\nIndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML -SuppressHTMLPreamble\n\n# favicon & meta viewport\nIndexHeadInsert \"\\\n        <link rel=\\\"shortcut icon\\\" href=\\\"{FOLDERNAME}/theme/favicon.ico\\\" />\\\n        <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1\\\" />\"\n\n# hide \".htaccess\" file and \"/theme\" directory\nIndexIgnore .htaccess /theme\n\n\n#\n# general icons (blank, directory, parent directory)\n#\n\n#\n# replace {FOLDERNAME} with your directory url\n#\n# if your directory is http://mywebsite.com/share/ you would change to:\n#\n# AddIcon /share/theme/icons/empty.svg ^^BLANKICON^^\n#\n\nAddIcon {FOLDERNAME}/theme/icons/empty.svg ^^BLANKICON^^\nAddIcon {FOLDERNAME}/theme/icons/folder.svg ^^DIRECTORY^^\nAddIcon {FOLDERNAME}/theme/icons/user-home.svg ..\n\n#\n# unused icons (that should be soon removed)\n#\n# folder-open.svg => maybe a js when a folder is hovered\n# folder-document.svg\n#\n\n\n#\n# image\n#\n\n# ext: ai eps ps\nAddIconByType (ps,{FOLDERNAME}/theme/icons/image-x-eps.svg) application/postscript\n\n# ext: bmp\nAddIconByType (bmp,{FOLDERNAME}/theme/icons/image-bmp.svg) image/bmp\n\n# ext: gif\nAddIconByType (gif,{FOLDERNAME}/theme/icons/image-gif.svg) image/gif\n\n# ext: ico\nAddIconByType (ico,{FOLDERNAME}/theme/icons/image-x-ico.svg) image/x-icon\n\n# ext: jpg jpeg jpe\nAddIconByType (jpg,{FOLDERNAME}/theme/icons/image-jpeg.svg) image/jpeg\n\n# ext: png\nAddIconByType (png,{FOLDERNAME}/theme/icons/image-png.svg) image/png\n\n# ext: psd\nAddIconByType (psd,{FOLDERNAME}/theme/icons/image-x-psd.svg) image/vnd.adobe.photoshop\n\n# ext: svg svgz\nAddIconByType (draw,{FOLDERNAME}/theme/icons/x-office-drawing.svg) image/svg+xml\n\n# ext: tiff tif\nAddIconByType (tiff,{FOLDERNAME}/theme/icons/image-tiff.svg) image/tiff\n\n# xcf media type not yet included in apache, fallback to AddIcon\n# ext: xcf\n#AddIconByType (xcf,{FOLDERNAME}/theme/icons/image-x-xcf.svg) image/x-xcf\nAddIcon {FOLDERNAME}/theme/icons/image-x-xcf.svg .xcf\n\n# all other images\n# ext: bmp cgm g3 gif ief jpeg jpg jpe ktx png btif sgi svg svgz tiff tif psd uvi uvvi uvg uvvg djvu djv sub dwg dxf fbs fpx fst mmr rlc mdi wdp npx wbmp xif webp 3ds ras cmx fh fhc fh4 fh5 fh7 ico sid pcx pic pct pnm pbm pgm ppm rgb tga xbm xpm xwd\n# ext: odg\n# ext: otg\n# ext: odi\n# ext: oti\nAddIconByType (image,{FOLDERNAME}/theme/icons/image-x-generic.svg) image/* \\\n                                                                   application/vnd.oasis.opendocument.graphics \\\n                                                                   application/vnd.oasis.opendocument.graphics-template \\\n                                                                   application/vnd.oasis.opendocument.image \\\n                                                                   application/vnd.oasis.opendocument.image-template\n\n\n#\n# audio\n#\n\n# audio playlist\n# ext: m3u\n# ext: m3u8\n# ext: pls\nAddIconByType (playlist,{FOLDERNAME}/theme/icons/audio-x-mp3-playlist.svg) audio/x-mpegurl \\\n                                                                           application/vnd.apple.mpegurl \\\n                                                                           application/pls+xml\n\n# all audio\n# ext: adp au snd mid midi kar rmi m4a mp4a mpga mp2 mp2a mp3 m2a m3a oga ogg spx s3m sil uva uvva eol dra dts dtshd lvp pya ecelp4800 ecelp7470 ecelp9600 rip weba aac aif aiff aifc caf flac mka m3u wax wma xm rmp ram ra wav\nAddIconByType (audio,{FOLDERNAME}/theme/icons/audio-x-generic.svg) audio/*\n\n\n#\n# video\n#\n\n# video playlist\n# ext: mxu m4u\nAddIconByType (playlist,{FOLDERNAME}/theme/icons/video-x-generic.svg) video/vnd.mpegurl\n\n# all video\n# ext: 3g2 3gp h261 h263 h264 jpgv jpm jpgm mj2 mjp2 mp4 mp4v mpg4 mpeg mpg mpe m1v m2v ogv qt mov uvh uvvh uvm uvvm uvp uvvp uvs uvvs uvv uvvv dvb fvt mxu m4u pyv uvu uvvu viv webm f4v fli flv m4v mkv mk3d mks mng asf asx avi vob wmv wm wmx wvx movie smv\nAddIconByType (video,{FOLDERNAME}/theme/icons/video-x-generic.svg) video/*\n\n\n#\n# internet\n#\n\n# ext: html htm\n# ext: xhtml xht\n# ext: uri uris urls\nAddIconByType (html,{FOLDERNAME}/theme/icons/text-html.svg) text/html \\\n                                                            application/xhtml+xml \\\n                                                            text/uri-list\n\n# ext: rss\n# ext: atom\nAddIconByType (rss,{FOLDERNAME}/theme/icons/application-rss+xml.svg) application/rss+xml \\\n                                                                     application/atom+xml\n\n# ext: ics ifb\n# ext: vcs\nAddIconByType (vcal,{FOLDERNAME}/theme/icons/evolution-calendar.svg) text/calendar \\\n                                                                     text/x-vcalendar\n\n# ext: vcard\n# ext: vcf\nAddIconByType (vcard,{FOLDERNAME}/theme/icons/addressbook.svg) text/vcard \\\n                                                               text/x-vcard\n\n# ext: torrent\nAddIconByType (torrent,{FOLDERNAME}/theme/icons/application-x-bittorrent.svg) application/x-bittorrent\n\n\n#\n# office\n#\n\n# ext: odc\n# ext: otc\n# ext: odf\n# ext: odft\n# ext: ods\n# ext: ots\n# ext: csv\n# ext: xls xlm xla xlc xlt xlw\n# ext: xlsx\nAddIconByType (calc,{FOLDERNAME}/theme/icons/x-office-spreadsheet.svg) application/vnd.oasis.opendocument.chart \\\n                                                                       application/vnd.oasis.opendocument.chart-template \\\n                                                                       application/vnd.oasis.opendocument.formula \\\n                                                                       application/vnd.oasis.opendocument.formula-template \\\n                                                                       application/vnd.oasis.opendocument.spreadsheet \\\n                                                                       application/vnd.oasis.opendocument.spreadsheet-template \\\n                                                                       text/csv \\\n                                                                       application/vnd.ms-excel \\\n                                                                       application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n\n# ext: odt\n# ext: odm\n# ext: ott\n# ext: oth\n# ext: doc dot\n# ext: docx\nAddIconByType (doc,{FOLDERNAME}/theme/icons/x-office-document.svg) application/vnd.oasis.opendocument.text \\\n                                                                   application/vnd.oasis.opendocument.text-master \\\n                                                                   application/vnd.oasis.opendocument.text-template \\\n                                                                   application/vnd.oasis.opendocument.text-web \\\n                                                                   application/msword \\\n                                                                   application/vnd.openxmlformats-officedocument.wordprocessingml.document\n\n# ext: odp\n# ext: otp\n# ext: ppt pps pot\n# ext: pptx\n# ext: ppsx\nAddIconByType (slideshow,{FOLDERNAME}/theme/icons/x-office-presentation.svg) application/vnd.oasis.opendocument.presentation \\\n                                                                             application/vnd.oasis.opendocument.presentation-template \\\n                                                                             application/vnd.ms-powerpoint \\\n                                                                             application/vnd.openxmlformats-officedocument.presentationml.presentation \\\n                                                                             application/vnd.openxmlformats-officedocument.presentationml.slideshow\n\n# ext: mdb\n# ext: odb\nAddIconByType (database,{FOLDERNAME}/theme/icons/text-x-sql.svg) application/x-msaccess \\\n                                                                 application/vnd.oasis.opendocument.database\n\n# ext: pdf\nAddIconByType (pdf,{FOLDERNAME}/theme/icons/application-pdf.svg) application/pdf\n\n# ext: rtf\nAddIconByType (rtf,{FOLDERNAME}/theme/icons/text-richtext.svg) application/rtf\n\n# ext: latex\n# ext: tex\nAddIconByType (tex,{FOLDERNAME}/theme/icons/text-x-tex.svg) application/x-latex \\\n                                                            application/x-tex\n\n\n#\n# programming\n#\n\n# h media type not yet included in apache, fallback to AddIcon\n# ext: h\n#AddIconByType (h,{FOLDERNAME}/theme/icons/text-x-chdr.svg) text/x-h\nAddIcon {FOLDERNAME}/theme/icons/text-x-chdr.svg .h\n\n# hpp files do not have a specific media type, fallback to AddIcon\n# ext: hpp\nAddIcon {FOLDERNAME}/theme/icons/text-x-c++hdr.svg .hpp\n\n# cpp files do not have a specific media type, fallback to AddIcon\n# ext: cpp\nAddIcon {FOLDERNAME}/theme/icons/text-x-c++.svg .cpp\n\n# ext: c cc cxx cpp h hh dic\nAddIconByType (c,{FOLDERNAME}/theme/icons/text-x-c.svg) text/x-c\n\n# ext: java\n# ext: jar\n# ext: class\nAddIconByType (java,{FOLDERNAME}/theme/icons/text-x-java.svg) text/x-java-source \\\n                                                              application/java-archive \\\n                                                              application/java-vm\n\n# sass and scss files do not have a specific media type, fallback to AddIcon\n# ext: sass scss\nAddIcon {FOLDERNAME}/theme/icons/text-css.svg .sass .scss\n\n# ext: css\nAddIconByType (css,{FOLDERNAME}/theme/icons/text-css.svg) text/css\n\n# ext: js\n# ext: json\nAddIconByType (js,{FOLDERNAME}/theme/icons/text-x-javascript.svg) application/javascript \\\n                                                                  application/json\n\n# diff and patch files do not have a specific media type, fallback to AddIcon\n# ext: diff patch\nAddIcon {FOLDERNAME}/theme/icons/text-x-source.svg .diff .patch\n\n# makefile files do not have a specific media type, fallback to AddIcon\n# ext: Makefile\nAddIcon {FOLDERNAME}/theme/icons/text-x-makefile.svg Makefile\n\n# php files do not have a specific media type, fallback to AddIcon\n# ext: php phtml\nAddIcon {FOLDERNAME}/theme/icons/application-x-php.svg .php .phtml\n\n# python files do not have a specific media type, fallback to AddIcon\n# ext: py\nAddIcon {FOLDERNAME}/theme/icons/text-x-python.svg .py\n\n# ruby files do not have a specific media type, fallback to AddIcon\n# ext: rb\nAddIcon {FOLDERNAME}/theme/icons/application-x-ruby.svg .rb\n\n# ext: sql\nAddIconByType (sql,{FOLDERNAME}/theme/icons/text-x-sql.svg) application/x-sql\n\n# ext: xml xsl\n# ext: dtd\nAddIconByType (xml,{FOLDERNAME}/theme/icons/text-xml.svg) application/xml \\\n                                                          application/xml-dtd\n\n\n#\n# sysadmin\n#\n\n# pkg files do not have a specific media type, fallback to AddIcon\n# ext: pkg\nAddIcon {FOLDERNAME}/theme/icons/package-x-generic.svg .pkg\n\n# ext: bin dms lrf mar so dist distz pkg bpk dump elc deploy\nAddIconByType (bin,{FOLDERNAME}/theme/icons/multipart-encrypted.svg) application/octet-stream\n\n# ext: iso\nAddIconByType (cd,{FOLDERNAME}/theme/icons/application-x-cd-image.svg) application/x-iso9660-image\n\n# ext: deb udeb\nAddIconByType (deb,{FOLDERNAME}/theme/icons/deb.svg) application/x-debian-package\n\n# msi files do not have a specific media type, fallback to AddIcon\n# ext: msi\nAddIcon {FOLDERNAME}/theme/icons/text-x-install.svg .msi\n\n# ext: exe dll com bat msi\nAddIconByType (exe,{FOLDERNAME}/theme/icons/application-x-ms-dos-executable.svg) application/x-msdownload\n\n# ext: dmg\n# ext: mpkg\n# ext: apk\nAddIconByType (package,{FOLDERNAME}/theme/icons/package-x-generic.svg) application/x-apple-diskimage \\\n                                                                       application/vnd.apple.installer+xml \\\n                                                                       application/vnd.android.package-archive\n\n# rpm files do not have a specific media type, fallback to AddIcon\n# ext: rpm\nAddIcon {FOLDERNAME}/theme/icons/rpm.svg .rpm\n\n# ext: sh\nAddIconByType (script,{FOLDERNAME}/theme/icons/text-x-script.svg) application/x-sh\n\n# ext: ttc otf ttf woff2 woff\nAddIconByType (font,{FOLDERNAME}/theme/icons/font-x-generic.svg) font/*\n\n#\n# archives\n#\n\n# ext: gz\nAddIconByType (gzip,{FOLDERNAME}/theme/icons/application-x-archive.svg) application/x-gzip\n\n# gzip media type does not include .gzip file extension, fallback to AddIcon\n# ext: gzip\nAddIcon {FOLDERNAME}/theme/icons/application-x-archive.svg .gzip\n\n# ext: rar\nAddIconByType (rar,{FOLDERNAME}/theme/icons/application-x-rar.svg) application/x-rar-compressed\n\n# ext: tar\nAddIconByType (tar,{FOLDERNAME}/theme/icons/application-x-tar.svg) application/x-tar\n\n# ext: zip\nAddIconByType (zip,{FOLDERNAME}/theme/icons/application-x-zip.svg) application/zip\n\n# ext: 7z bz bz2 cab\nAddIconByType (archive,{FOLDERNAME}/theme/icons/application-x-archive.svg) application/x-7z-compressed \\\n                                                                           application/x-bzip \\\n                                                                           application/x-bzip2 \\\n                                                                           application/vnd.ms-cab-compressed\n\n\n#\n# books\n#\n\n# ext: cbr cba cbt cbz cb7\nAddIconByType (text,{FOLDERNAME}/theme/icons/image-x-generic.svg) application/x-cbr\n\n# ext: epub\n# ext: prc mobi\n# ext: azw\nAddIconByType (text,{FOLDERNAME}/theme/icons/text-plain.svg) application/epub+zip \\\n                                                             application/x-mobipocket-ebook \\\n                                                             application/vnd.amazon.ebook\n\n\n#\n# text\n#\n\n# readme files do not have a specific media type, fallback to AddIcon\n# ext: README\nAddIcon {FOLDERNAME}/theme/icons/text-x-readme.svg README\n\n# markdown media type not yet included in apache, fallback to AddIcon\n# ext: markdown md\n#AddIconByType (markdown,{FOLDERNAME}/theme/icons/text-richtext.svg) text/mardown\nAddIcon {FOLDERNAME}/theme/icons/text-richtext.svg .markdown .md\n\n# this directive has to be at the end of the file because the text/* media type is very generic and should not be interpreted before other more specific directives\n# ext: appcache ics ifb css csv html htm n3 txt text conf def list log in dsc rtx sgml sgm tsv t tr roff man me ms ttl uri uris urls vcard curl dcurl mcurl scurl sub fly flx gv 3dml spot jad wmls wml s asm c cc cxx cpp h hh dic f for f77 f90 java nfo opml p pas etx sfv uu vcs vcf\nAddIconByType (text,{FOLDERNAME}/theme/icons/text-plain.svg) text/*\n\n\n#\n# default\n#\n\nDefaultIcon {FOLDERNAME}/theme/icons/empty.svg\n\n\n#\n# theme files\n#\n\nHeaderName {FOLDERNAME}/theme/header.html\nReadmeName {FOLDERNAME}/theme/footer.html\nIndexStyleSheet {FOLDERNAME}/theme/style.css\n\n\n#\n# error pages\n#\n\nErrorDocument 400 {FOLDERNAME}/theme/400.html\nErrorDocument 403 {FOLDERNAME}/theme/403.html\nErrorDocument 404 {FOLDERNAME}/theme/404.html\nErrorDocument 408 {FOLDERNAME}/theme/408.html\nErrorDocument 500 {FOLDERNAME}/theme/500.html\nErrorDocument 502 {FOLDERNAME}/theme/502.html\n"
  },
  {
    "path": "apaxy/theme/.htaccess",
    "content": "#\n#\tApaxy by @adamwhitcroft\n#\n#\tFor a full breakdown of the mod_autoindex module\n#\thttp://apache.org/docs/2.2/mod/mod_autoindex.html\n#\n\n#\tDon't index this folder\nOptions -Indexes\n"
  },
  {
    "path": "apaxy/theme/400.html",
    "content": "<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<meta charset=\"UTF-8\"/>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<title>Error 400</title>\n\t\t<!-- Stylesheets -->\n\t\t<link rel=\"stylesheet\" href=\"{FOLDERNAME}/theme/style.css\" />\n\t</head>\n\t<body class=\"fadeDown\">\n\t\t<div class=\"center\">\n\t\t\t<h1>Error.</h1>\n\t\t\t<div class=\"errorCode\">400\n\t\t\t</div>\n\t\t\t<p>Sorry, I don't understand what you want me to do.</p>\n\t\t</div>\n\t</body>\n</html>\n"
  },
  {
    "path": "apaxy/theme/403.html",
    "content": "<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<meta charset=\"UTF-8\"/>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<title>Error 403</title>\n\t\t<!-- Stylesheets -->\n\t\t<link rel=\"stylesheet\" href=\"{FOLDERNAME}/theme/style.css\" />\n\t</head>\n\t<body class=\"fadeDown\">\n\t\t<div class=\"center\">\n\t\t\t<h1>Error.</h1>\n\t\t\t<div class=\"errorCode\">403\n\t\t\t</div>\n\t\t\t<p>You aren't allowed to be here.</p>\n\t\t</div>\n\t</body>\n</html>\n"
  },
  {
    "path": "apaxy/theme/404.html",
    "content": "<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<meta charset=\"UTF-8\"/>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<title>Error 404</title>\n\t\t<!-- Stylesheets -->\n\t\t<link rel=\"stylesheet\" href=\"{FOLDERNAME}/theme/style.css\" />\n\t</head>\n\t<body class=\"fadeDown\">\n\t\t<div class=\"center\">\n\t\t\t<h1>Error.</h1>\n\t\t\t<div class=\"errorCode\">404\n\t\t\t</div>\n\t\t\t<p>I can't find what you are looking for...</p>\n\t\t</div>\n\t</body>\n</html>\n"
  },
  {
    "path": "apaxy/theme/408.html",
    "content": "<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<meta charset=\"UTF-8\"/>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<title>Error 408</title>\n\t\t<!-- Stylesheets -->\n\t\t<link rel=\"stylesheet\" href=\"{FOLDERNAME}/theme/style.css\" />\n\t</head>\n\t<body class=\"fadeDown\">\n\t\t<div class=\"center\">\n\t\t\t<h1>Error.</h1>\n\t\t\t<div class=\"errorCode\">408\n\t\t\t</div>\n\t\t\t<p>I refuse to wait any longer.</p>\n\t\t</div>\n\t</body>\n</html>\n"
  },
  {
    "path": "apaxy/theme/500.html",
    "content": "<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<meta charset=\"UTF-8\"/>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<title>Error 500</title>\n\t\t<!-- Stylesheets -->\n\t\t<link rel=\"stylesheet\" href=\"{FOLDERNAME}/theme/style.css\" />\n\t</head>\n\t<body class=\"fadeDown\">\n\t\t<div class=\"center\">\n\t\t\t<h1>Error.</h1>\n\t\t\t<div class=\"errorCode\">500\n\t\t\t</div>\n\t\t\t<p>I don't know what to do. This isn't your fault.</p>\n\t\t</div>\n\t</body>\n</html>\n"
  },
  {
    "path": "apaxy/theme/502.html",
    "content": "<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<meta charset=\"UTF-8\"/>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<title>Error 502</title>\n\t\t<!-- Stylesheets -->\n\t\t<link rel=\"stylesheet\" href=\"{FOLDERNAME}/theme/style.css\" />\n\t</head>\n\t<body class=\"fadeDown\">\n\t\t<div class=\"center\">\n\t\t\t<h1>Error.</h1>\n\t\t\t<div class=\"errorCode\">502\n\t\t\t</div>\n\t\t\t<p>I received some invalid information from my master.</p>\n\t\t</div>\n\t</body>\n</html>\n"
  },
  {
    "path": "apaxy/theme/apaxy-lightgallery.js",
    "content": "var imageSelector = [\n    'tr:not(.parent) td.indexcolname a[href$=\".gif\"]',\n    'tr:not(.parent) td.indexcolname a[href$=\".GIF\"]',\n    'tr:not(.parent) td.indexcolname a[href$=\".heic\"]',\n    'tr:not(.parent) td.indexcolname a[href$=\".HEIC\"]',\n    'tr:not(.parent) td.indexcolname a[href$=\".jpg\"]',\n    'tr:not(.parent) td.indexcolname a[href$=\".JPG\"]',\n    'tr:not(.parent) td.indexcolname a[href$=\".png\"]',\n    'tr:not(.parent) td.indexcolname a[href$=\".PNG\"]',\n].join(', ');\n\nlightGallery(document.getElementById('indexlist'), {\n    selector: imageSelector,\n    mode: 'lg-slide',\n    hideBarsDelay: 2000,\n    loop: false,\n    hideControlOnEnd: true,\n    download: true,\n    cssEasing : 'cubic-bezier(0.25, 0, 0.25, 1)'\n});\n"
  },
  {
    "path": "apaxy/theme/apaxy.js",
    "content": "// content filtering, based on \"light javascript table filter\" by Chris Coyier\n// https://codepen.io/chriscoyier/pen/tIuBL - MIT License\n(function(document) {\n\t'use strict';\n\n\tvar TableFilter = (function(Arr) {\n\n\t\t// the search bar element\n\t\tvar _input;\n\n\t\t// find all rows of all tables and call _filter on them\n\t\tfunction _onInputEvent(e) {\n\t\t\t_input = e.target;\n\t\t\tvar tables = document.getElementsByTagName('table');\n\t\t\tArr.forEach.call(tables, function(table) {\n\t\t\t\tArr.forEach.call(table.tBodies, function(tbody) {\n\t\t\t\t\tArr.forEach.call(tbody.rows, _filter);\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\t// show or hide a row based on the value of _input\n\t\tfunction _filter(row) {\n\t\t\t// skip \"special\" rows\n\t\t\tif (row.className.indexOf('indexhead') != -1 || row.className.indexOf('parent') != -1) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// only check the 'name' field\n\t\t\tvar text = row.getElementsByTagName('td')[1].textContent.toLowerCase();\n\t\t\tvar val = _input.value.toLowerCase();\n\n\t\t\t// change display type to show / hide this row\n\t\t\trow.style.display = text.indexOf(val) === -1 ? 'none' : 'table-row';\n\t\t}\n\n\t\treturn {\n\t\t\tinit: function() {\n\t\t\t\t// grab the 1st child and add the indexhead class. tr:nth-child(1)\n\t\t\t\tvar row = document.getElementsByTagName('tr')[0];\n\t\t\t\t// some versions of apache already add this class\n\t\t\t\tif (row !== null && row.className.indexOf('indexhead') == -1) {\n\t\t\t\t\trow.className += ' indexhead';\n\t\t\t\t}\n\n\t\t\t\t// grab the 2nd child and add the parent class. tr:nth-child(2)\n\t\t\t\trow = document.getElementsByTagName('tr')[1];\n\t\t\t\t// when apaxy is installed at doc root, there is no \"parent directory\" row\n\t\t\t\tif (row !== null && row.getElementsByTagName('td')[1].textContent === 'Parent Directory') {\n\t\t\t\t\trow.className += ' parent';\n\t\t\t\t}\n\n\t\t\t\t// find the search box and bind the input event\n\t\t\t\tdocument.getElementById('filter').oninput = _onInputEvent;\n\t\t\t}\n\t\t};\n\n\t})(Array.prototype);\n\n\tdocument.addEventListener('readystatechange', function() {\n\t\tif (document.readyState === 'complete') {\n\t\t\tTableFilter.init();\n\t\t\tvar filterInput = document.getElementById('filter');\n\t\t\tif ( filterInput.value.trim().length ){\n\t\t\t\tfilterInput.focus();\n\t\t\t\tfilterInput.dispatchEvent(new Event('input'));\n\t\t\t}\n\t\t}\n\t});\n\n\t// Use Keydown to get special keys like Backspace, Enter, Esc.\n\twindow.addEventListener('keydown', function (e) {\n\t\tvar filterInput = document.getElementById('filter');\n\t\tvar isFocused = (document.activeElement === filterInput);\n\t\tif ( !isFocused && String.fromCharCode(e.keyCode).match(/(\\w|\\s)/g) ) {\n\t\t\tfilterInput.focus();\n\t\t} else {\n\t\t\t//pressed key is a non-char\n\t\t\t//e.g. 'esc', 'backspace', 'up arrow'\n\t\t}\n\t});\n\n})(document);\n\n// generate a breadcrumb\nvar uri = window.location.pathname.substr(1);\nvar arr = uri.split('/');\nvar url = \"\"\nvar bread = '<li><strong><a href=\"/\">Home</a></strong></li>';\nvar cont = 1;\narr.forEach(function(value){\n        url = url + '/' + value;\n        if(value != ''){\n            if(arr.length == cont+1)\n                bread += \"<li class='active'>\"+decodeURI(value)+\"</li>\";\n            else\n                bread += \"<li><a href='\"+url+\"'>\"+decodeURI(value)+\"</a></li>\";\n        }\n        cont++;\n});\ndocument.getElementById(\"breadcrumb\").innerHTML = bread;\n"
  },
  {
    "path": "apaxy/theme/footer-lightgallery.html",
    "content": "  <div class=\"block\">\n    {FOOTER-MESSAGE}\n  </div><!--/.postlisting-->\n\n</div><!--/.wrapper-->\n\n<div class=\"footer\">\n  Apaxy by <a href=\"https://twitter.com/adamwhitcroft\">@adamwhitcroft</a>\n</div><!--/.footer-->\n<script src={FOLDERNAME}/theme/apaxy.js></script>\n<script src=\"https://cdn.jsdelivr.net/npm/lightgallery@2.4.0/lightgallery.min.js\" integrity=\"sha256-rJzhAjlCghJKSkx4mAv3VwVgxDSAbNM0AH7PhP4cDns=\" crossorigin=\"anonymous\"></script>\n<script src={FOLDERNAME}/theme/apaxy-lightgallery.js></script>\n"
  },
  {
    "path": "apaxy/theme/footer.html",
    "content": "  <div class=\"block\">\n    {FOOTER-MESSAGE}\n  </div><!--/.postlisting-->\n\n</div><!--/.wrapper-->\n\n<div class=\"footer\">\n  Apaxy by <a href=\"https://twitter.com/adamwhitcroft\">@adamwhitcroft</a>\n</div><!--/.footer-->\n<script src={FOLDERNAME}/theme/apaxy.js></script>\n"
  },
  {
    "path": "apaxy/theme/header-lightgallery.html",
    "content": "<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\">\n\n<div class=\"wrapper\">\n<!-- we open the `wrapper` element here, but close it in the `footer.html` file -->\n\n<ol class=\"breadcrumb\" id=\"breadcrumb\">\n</ol>\n\n<input type=\"search\" id=\"filter\" placeholder=\"filter contents\" />\n\n{HEADER-MESSAGE}\n"
  },
  {
    "path": "apaxy/theme/header.html",
    "content": "<div class=\"wrapper\">\n<!-- we open the `wrapper` element here, but close it in the `footer.html` file -->\n\n<ol class=\"breadcrumb\" id=\"breadcrumb\">\n</ol>\n\n<input type=\"search\" id=\"filter\" placeholder=\"filter content\" />\n\n{HEADER-MESSAGE}\n"
  },
  {
    "path": "apaxy/theme/style.css",
    "content": "/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */\nbutton,hr,input{overflow:visible}audio,canvas,progress,video{display:inline-block}progress,sub,sup{vertical-align:baseline}html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0} menu,article,aside,details,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{}button,select{text-transform:none}[type=submit], [type=reset],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none};\n\n/*------------------------------------*\\\n    Apaxy\n    by @adamwhitcroft\n\n    Theme name: Apaxy\n    Theme author: @adamwhitcroft\n\\*------------------------------------*/\n\n* {\n  margin: 0;\n  padding: 0;\n  box-sizing: border-box;\n  -moz-box-sizing: border-box;\n  -webkit-box-sizing: border-box;\n}\n\nhtml {\n  min-height: 100%;\n  color: #61666c;\n  background-color: #fff;\n  font-weight: 400;\n  font-size: 1em;\n  font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n  line-height: 2em;\n}\n@media (prefers-color-scheme: dark) {\n  html {\n    background-color: #232323;\n  }\n}\n\nbody {\n  padding: 20px;\n  -webkit-backface-visibility: hidden;\n}\n\ncode {\n  font-family: consolas,monospace;\n}\n\na {\n  color: #333;\n  text-decoration: none;\n}\n@media (prefers-color-scheme: dark) {\n  a {\n    color: #e9e9e9;\n  }\n}\n\na, img {\n  border: none;\n  outline: none;\n}\n\na > img:hover {\n  opacity: 0.4;\n}\n\na:hover {\n  color: #000;\n}\n\n@media (prefers-color-scheme: dark) {\n  a:hover {\n    color: #696969;\n    font-weight: bold;\n  }\n}\n\n/*------------------------------------*\\\n    Wrapper\n\\*------------------------------------*/\n\n.wrapper {\n  margin: 0 auto;\n  padding-top: 20px;\n  max-width: 80%;\n}\n\n/*------------------------------------*\\\n    Filter (search box)\n\\*------------------------------------*/\n#filter {\n  background-color: rgba(0, 0, 0, 0.04);\n  float: right;\n  font-size:.75em;\n  padding: .5em;\n  margin-bottom: .5em;\n  border: 1px solid rgba(0, 0, 0, 0.15);\n  border-radius: .25em;\n  width: 10em;\n  transition: width 0.25s ease;\n}\n@media (prefers-color-scheme: dark) {\n  #filter {\n    background-color: rgba(255, 255, 255, 0.07);\n    border-color: rgba(255, 255, 255, 0.15);\n    color: white;\n  }\n}\n#filter:focus {\n  width: 14em;\n}\n\n/*------------------------------------*\\\n    Demo block\n\\*------------------------------------*/\n\n.block {\n  font-size: .875em;\n  margin: 20px 0;\n  padding: 20px;\n  color: #9099A3;\n}\n\n/*------------------------------------*\\\n    Table (directory listing)\n\\*------------------------------------*/\n\ntable {\n  width: 100%;\n  border-collapse: collapse;\n  font-size: .875em;\n  color: rgb(143, 143, 143);\n}\n@media (prefers-color-scheme: dark) {\n  table {\n    color: rgb(111, 111, 111);\n  }\n}\n\n.odd {\n  background-color: rgb(244, 244, 244);\n}\n@media (prefers-color-scheme: dark) {\n  .odd {\n    background-color: rgb(50, 50, 50);\n  }\n}\n\ntr {\n  outline: 0;\n  border: 0;\n}\n\ntr.indexhead{\n  border-bottom: 2px solid #999;\n}\n\ntr:not(.indexhead):hover{\n  box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.25) inset;\n  -webkit-box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.25) inset;\n  -moz-box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.25) inset;\n}\n\nth {\n  text-align: left;\n  font-size: .75em;\n  padding-right: 20px;\n}\n\n/* 2nd Column: Filename */\nth + th {\n  width: 65%;\n}\n\n/* 3rd Column: Last Modified */\nth + th + th {\n}\n\n/* 4th Column: Size */\nth + th + th + th {\n  width: 5%;\n}\n\ntr th:first-of-type,\ntr td:first-of-type {\n  padding-left: 10px;\n  padding-right: 10px;\n}\n\ntd {\n  padding: 5px 0;\n  outline: 0;\n  border: 0;\n  vertical-align: middle;\n  text-align: left;\n  transition: background 300ms ease;\n  -o-transition: background 300ms ease;\n  -ms-transition: background 300ms ease;\n  -moz-transition: background 300ms ease;\n  -webkit-transition: background 300ms ease;\n}\n@media (prefers-color-scheme: dark) {\n  td {\n    border-color: #424242;\n  }\n}\n\ntd a {\n  display: block;\n}\n\ntr.parent a[href^=\"/\"] {\n  color: #9099A3;\n}\n\n.parent a[href^=\"/\"]:hover {\n  color: #2281d0;\n}\n\n/*------------------------------------*\\\n    Footer\n\\*------------------------------------*/\n\n.footer {\n  text-align: center;\n  font-size: .75em;\n}\n\n/*------------------------------------*\\\n    Media query for small screens\n\\*------------------------------------*/\n@media (max-width: 768px) {\n  body {\n    padding: 10px;\n  }\n  /* 2nd Column: Filename */\n  .indexcolname { width: 95%; }\n  /* 3rd Column: Last Modified */\n  .indexcollastmod { display: none; }\n  .wrapper { max-width: 100%; }\n}\n\n/*------------------------------------*\\\n    Error pages\n/*------------------------------------*/\n/* Animation */\n@-webkit-keyframes fadeDown {\n  0% {\n    opacity: 0;\n    -webkit-transform: translateY(-20px);\n  }\n  100% {\n    opacity: 1;\n    -webkit-transform: translateY(0);\n  }\n}\n\n@-moz-keyframes fadeDown {\n  0% {\n    opacity: 0;\n    -moz-transform: translateY(-20px);\n  }\n  100% {\n    opacity: 1;\n    -moz-transform: translateY(0);\n  }\n}\n\n@-ms-keyframes fadeDown {\n  0% {\n    opacity: 0;\n    -ms-transform: translateY(-20px);\n  }\n  100% {\n    opacity: 1;\n    -ms-transform: translateY(0);\n  }\n}\n\n@-o-keyframes fadeDown {\n  0% {\n    opacity: 0;\n    -o-transform: translateY(-20px);\n  }\n  100% {\n    opacity: 1;\n    -o-transform: translateY(0);\n  }\n}\n\n@keyframes fadeDown {\n  0% {\n    opacity: 0;\n    transform: translateY(-20px);\n  }\n  100% {\n    opacity: 1;\n    transform: translateY(0);\n  }\n}\n\n.fadeDown {\n  -webkit-animation:fadeDown 1s ease;\n     -moz-animation:fadeDown 1s ease;\n      -ms-animation:fadeDown 1s ease;\n       -o-animation:fadeDown 1s ease;\n          animation:fadeDown 1s ease;\n}\n\n/* Center elements in error pages */\n.fadeDown .center {\n  text-align: center;\n}\n\n/* Error code display */\n.errorCode {\n  font-size: 80px;\n}\n\n/*------------------------------------*\\\n    Breadcrumb\n\\*------------------------------------*/\n\n.breadcrumb {\n  padding: 0;\n  margin: 0;\n}\n\n.breadcrumb li {\n  color: rgb(154, 154, 154);\n  display: inline-block;\n  line-height: 10px;\n  margin: 0 9px 20px -10px;\n  padding: 0 15px;\n  position: relative;\n  white-space: nowrap;\n}\n@media (prefers-color-scheme: dark) {\n  .breadcrumb li {\n    color: rgb(100, 100, 100);\n  }\n}\n\n.breadcrumb li::before,\n.breadcrumb li::after {\n  border-right: 1.5px solid #000;\n  content: '';\n  display: block;\n  height: 50%;\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 0;\n  z-index: -1;\n  transform: skewX(45deg);\n}\n@media (prefers-color-scheme: dark) {\n  .breadcrumb li::before,\n  .breadcrumb li::after {\n    border-color: #fff;\n  }\n}\n\n.breadcrumb li::after {\n  bottom: 0;\n  top: auto;\n  transform: skewX(-45deg);\n}\n\n.breadcrumb li:last-of-type::before,\n.breadcrumb li:last-of-type::after {\n  display: none;\n}\n\n.breadcrumb li a {\n  letter-spacing: -1px;\n  text-decoration: none;\n}\n"
  },
  {
    "path": "apaxy-configure.sh",
    "content": "#!/bin/bash\n#\n# apaxy configurator\n# v0.2\n# configure apaxy according to your local paths and configuration\n# author : Jordan Bancino and Ploc\n# contact : jordan [@] bancino.net\n# licence : GPLv3\n\n# enabling strict mode\n# -e - exit immediatly on error (disable with \"+e\" when an error can happens, then enable it again with \"-e\")\n# -u - undefined variables are forbidden (enable this option after getting parameters from $1 $2...) see below\n# -o pipefail - find error return code inside piped commands\n# IFS - set strong internal field separator\nset -eo pipefail\nIFS=$'\\n\\t'\n\n# default config\ndefaultConfigFile=\"apaxy.config\"\ndefaultApacheWebRootPath=\"/var/www/html\"\ndefaultInstallWebPath=\"\"\ndefaultEnableGallery=false\ndefaultHeaderMessage=\"\"\ndefaultFooterMessage=\"\"\ndefaultLogLevel=2\ndefaultLogFile=\"$(basename \"${0}\" .sh).log\"\n\nworkingDirectory=\"$(dirname \"${0}\")\"\nlogLevel=\"${defaultLogLevel}\"\n\n# functions\n\n###\n # display help\n ##\ndisplayHelp () {\n    cat <<EOF\n$(basename \"${0}\") configure apaxy according to your local paths and configuration.\n\nIt can either configure apaxy according to your local paths and configuration bu it can also install the required files in your http server path.\n\nEOF\n    displayUsage\n    cat <<EOF\n\nAvailable optionnal parameters are :\n  -h  - display help\n  -c  - set path/to/apaxy.config file that contains all configuration\n  -d  - set path/to/dir/ directory where apaxy will be installed on the filesystem\n  -w  - set path/to/dir/ directory where apaxy will be available on the httpd server\n  -g  - enable or disable gallery feature\n  -hm - set the default header message displayed on top of each page\n  -fm - set the default footer message displayed on bottom of each page\n  -ll - set the log level\n  -lf - set the log file\nEOF\n}\n\n###\n # display usage\n ##\ndisplayUsage () {\n    cat <<EOF\nusage - $(basename \"${0}\") [-h] [-c path/to/apaxy.config] [-d path/to/dir/] [-w path/to/dir/] [-g true|false] [-hm \"header message\"] [-fm \"footer message\"] [-ll logLevel] [-lf logFile]\nEOF\n}\n\n###\n # log a message\n #\n # @global $logLevel the log level\n # @global $logFile the log file\n # @param $1 the log level of the message\n # @param $2 the log message\n ##\nlog () {\n    local paramLogLevel=\"${1}\"\n    local paramLogMessage=\"${2}\"\n\n    # shellcheck disable=SC2155\n    local logDate=\"$(date +%H:%M:%S)\"\n    local logMessage=\"[${logDate}] ${paramLogMessage}\"\n\n    if [ \"${paramLogLevel}\" -le \"${logLevel}\" ]\n    then\n        echo \"${logMessage}\"\n    fi\n\n    if [ ! -z \"${logFile}\" ]\n    then\n        echo \"${logMessage}\" >> \"${logFile}\"\n    fi\n}\n\n# getting parameters value from cli (can overload config file values)\nwhile [ \"$#\" -ge 1 ] ; do\n    case \"${1}\" in\n        -h|--help) # display help\n            displayHelp\n            exit 0\n            ;;\n        -c) # set path/to/apaxy.config file that contains all configuration\n            shiftStep=2\n            paramConfigFile=\"${2}\"\n            ;;\n        -d) # set path/to/dir/ directory where apaxy will be available on the httpd server\n            shiftStep=2\n            paramApacheWebRootPath=\"${2}\"\n            ;;\n        -w) # set path/to/dir/ directory where apaxy will be installed on the filesystem\n            shiftStep=2\n            paramInstallWebPath=\"${2}\"\n            ;;\n        -g) # enable or disable gallery feature\n            shiftStep=2\n            paramEnableGallery=\"${2}\"\n            ;;\n        -hm) # set the default header message displayed on top of each page\n            shiftStep=2\n            paramHeaderMessage=\"${2}\"\n            ;;\n        -fm) # set the default footer message displayed on bottom of each page\n            shiftStep=2\n            paramFooterMessage=\"${2}\"\n            ;;\n        -ll) # set the log level\n            shiftStep=2\n            paramLogLevel=\"${2}\"\n            ;;\n        -lf) # set the log file\n            shiftStep=2\n            paramLogFile=\"${2}\"\n            ;;\n        *)\n            displayUsage\n            exit 2\n            ;;\n    esac\n\n    if [ \"$#\" -ge \"${shiftStep}\" ]\n    then\n        shift \"${shiftStep}\"\n    else\n        log 1 \"ERROR - invalid number of arguments\"\n        exit 3\n    fi\ndone\n\n# setting parameters value\nif [ -r \"${paramConfigFile}\" ]\nthen\n    # getting parameters value from config file (config file name set by cli values)\n    configFile=\"${paramConfigFile}\"\n    # shellcheck source=apaxy.config\n    source \"${configFile}\"\nelif [ -r \"${workingDirectory}/${defaultConfigFile}\" ]\nthen\n    # getting parameters value from config file (config file name is default)\n    configFile=\"${workingDirectory}/${defaultConfigFile}\"\n    # shellcheck source=apaxy.config\n    source \"${configFile}\"\nelse\n    log 1 \"apaxy configuration not found, using internal config from script shell itself\"\n    configFile=null\nfi\n\nif [ -n \"${paramApacheWebRootPath}\" ]\nthen\n    apacheWebRootPath=\"${paramApacheWebRootPath}\"\nelif [ -z \"${apacheWebRootPath}\" ]\nthen\n    apacheWebRootPath=\"${defaultApacheWebRootPath}\"\nfi\n\nif [ -n \"${paramInstallWebPath}\" ]\nthen\n    installWebPath=\"${paramInstallWebPath}\"\nelif [ -z \"${installWebPath}\" ]\nthen\n    installWebPath=\"${defaultInstallWebPath}\"\nfi\n\nif [ -n \"${paramApacheWebRootPath}\" ]\nthen\n    apacheWebRootPath=\"${paramApacheWebRootPath}\"\nelif [ -z \"${apacheWebRootPath}\" ]\nthen\n    apacheWebRootPath=\"${defaultApacheWebRootPath}\"\nfi\n\nif [ -n \"${paramInstallWebPath}\" ]\nthen\n    installWebPath=\"${paramInstallWebPath}\"\nelif [ -z \"${installWebPath}\" ]\nthen\n    installWebPath=\"${defaultInstallWebPath}\"\nfi\n\ninstallDir=\"${apacheWebRootPath}${installWebPath}\"\n\nif [ -n \"${paramEnableGallery}\" ]\nthen\n    enableGallery=\"${paramEnableGallery}\"\nelif [ -z \"${enableGallery}\" ]\nthen\n    enableGallery=\"${defaultEnableGallery}\"\nfi\n\nif [ -n \"${paramHeaderMessage}\" ]\nthen\n    headerMessage=\"${paramHeaderMessage}\"\nelif [ -z \"${headerMessage}\" ]\nthen\n    headerMessage=\"${defaultHeaderMessage}\"\nfi\n\nif [ -n \"${paramFooterMessage}\" ]\nthen\n    footerMessage=\"${paramFooterMessage}\"\nelif [ -z \"${footerMessage}\" ]\nthen\n    footerMessage=\"${defaultFooterMessage}\"\nfi\n\nif [ -n \"${paramLogLevel}\" ]\nthen\n    logLevel=\"${paramLogLevel}\"\nelif [ -z \"${logLevel}\" ]\nthen\n    logLevel=\"${defaultLogLevel}\"\nfi\n\nif [ -n \"${paramLogFile}\" ]\nthen\n    logFile=\"${paramLogFile}\"\nelif [ -z \"${logFile}\" ]\nthen\n    logFile=\"${workingDirectory}/${defaultLogFile}\"\nfi\n\n# enabling strict mode\n# -u - undefined variables are forbidden (enable this option after getting parameters from $1 $2...)\nset -u\n\n# checking parameters value\nif [ ! -d \"$(dirname \"${logFile}\")\" ]\nthen\n    log 1 \"ERROR - $(dirname \"${logFile}\") does not exist\"\n    exit 4\nfi\n\n# script\n\n# output current config\nlog 3 \"- current config\"\nlog 3 \"    configFile: ${configFile}\"\nlog 3 \"    apacheWebRootPath: ${apacheWebRootPath}\"\nlog 3 \"    installWebPath: ${installWebPath}\"\nlog 3 \"    installDir: ${installDir}\"\nlog 3 \"    enableGallery: ${enableGallery}\"\nlog 3 \"    headerMessage: ${headerMessage}\"\nlog 3 \"    footerMessage: ${footerMessage}\"\nlog 3 \"    logLevel: ${logLevel}\"\nlog 3 \"    logFile: ${logFile}\"\n\nlog 1 \"- creating install directory ${installDir}\"\nmkdir -p \"${installDir}\"\nif [ ! -d \"${installDir}\" ] || [ ! -w \"${installDir}\" ]; then\n    log 1 \"ERROR - install directory ${installDir} does not exist or is not writable by the current user\"\n    exit 5\nfi\n\nlog 1 \"- copying apaxy in install directory\"\n# we want globbing\n# shellcheck disable=SC2086\ncp -r ${workingDirectory}/apaxy/* \"${installDir}/\"\n\nlog 1 \"- configuring apaxy in install directory\"\n\nlog 2 \"- generating htaccess\"\nsed \"s|{FOLDERNAME}|${installWebPath}|g\" < \"${installDir}/htaccess.txt\" > \"${installDir}/.htaccess\"\nrm \"${installDir}/htaccess.txt\"\n\nif [ \"${enableGallery}\" = \"true\" ]\nthen\n    log 1 \"- enabling gallery feature\"\n    mv -f \"${installDir}/theme/header-lightgallery.html\" \"${installDir}/theme/header.html\"\n    mv -f \"${installDir}/theme/footer-lightgallery.html\" \"${installDir}/theme/footer.html\"\nelse\n    log 2 \"- gallery feature not enabled\"\nfi\n\n# find all the html files and replace the variable in them\n# this will automatically take care of the error pages, headers and footers\nlog 2 \"- setting path in html files\"\nfiles=$(find ${installDir} -name \"*.html\")\nwhile read -r file; do\n    sed -i \"s|{FOLDERNAME}|${installWebPath}|g\" \"${file}\"\n    sed -i \"s|{HEADER-MESSAGE}|${headerMessage}|g\" \"${file}\"\n    sed -i \"s|{FOOTER-MESSAGE}|${footerMessage}|g\" \"${file}\"\ndone <<< \"${files}\"\n\nlog 2 \"- syncing filesystem\"\nsync\nlog 1 \"- filesystem has been synced and is now consistent\"\nlog 1 \"- apaxy has been successfully configured and installed in ${installDir}\"\n"
  },
  {
    "path": "apaxy.config",
    "content": "#!/bin/bash\n#\n# apaxy configurator\n# v0.2\n# use \"apaxy-configure.sh\" to configure apaxy after adjusting the needed values in this file\n# author : Jordan Bancino and Ploc\n# contact : jordan [@] bancino.net\n# licence : GPLv3\n\n# default log level on the console (the lower the number is, the less verbose it is)\n#defaultLogLevel=2\n\n# all log messages are written to log file\n#defaultLogFile=\"apaxy.log\"\n\n# the apache web root path where the server serves documents\n#\n# default for apache is /var/www/html\n#\n# note that path should be absolute, so make sure it starts with a \"/\"\n# and DO NOT leave a trailing slash\n#\n# good: \"/var/www/html\" <- starts with \"/\", does not have trailing \"/\"\n# bad : \"var/www/html/\" <- does not start with \"/\", have a trailing \"/\"\n#\napacheWebRootPath=\"/var/www/html\"\n\n# the directory where apaxy will be used (this is relative to the web server root, and contains the \"theme\" folder)\n#\n# for instance: \"http://example.org/share\" would make this value \"/share\", where \"/share/theme\" is the theme directory\n#\n# note that path should be absolute, so make sure it starts with a \"/\"\n# and DO NOT leave a trailing slash\n#\n# good: \"/share\" <- starts with \"/\", does not have trailing \"/\"\n# bad : \"share/\" <- does not start with \"/\", has a trailing \"/\"\n#\n# by default, apaxy is configured to be installed at the root level of your web server\n#\n# if you want apaxy to be installed anywhere else, you can set it in the installWebPath variable\n#\n# installWebPath=\"/share\"\n#\ninstallWebPath=\"\"\n\n# enable lightgallery.js to preview images in the browser with navigation links\n#\n# this feature is disabled by default as it downloads css and js files from a CDN\n#\n# please enable it with caution\n#\nenableGallery=false\n\n# set the default header message displayed on top of each page\ndefaultHeaderMessage=\"\"\n\n# set the default footer message displayed on bottom of each page\ndefaultFooterMessage=\"\"\n"
  },
  {
    "path": "docker-compose.yml",
    "content": "version: '3'\nservices:\n  apaxy:\n    image: apaxy\n    build:\n      context: .\n      args:\n        apaxyPath: ''\n    ports:\n      - '80:8080'\n    volumes:\n      - './share/:/usr/local/apache2/htdocs/share/'\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"apaxy\",\n  \"version\": \"2.6.0-dev\",\n  \"description\": \"A simple, customisable theme for your Apache directory listing.\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n    \"update-changelog\": \"conventional-changelog --preset angular --infile CHANGELOG.md --same-file --release-count 1\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/oupala/apaxy.git\"\n  },\n  \"keywords\": [\n    \"apaxy\",\n    \"apaxy-themes\",\n    \"css\",\n    \"icons\",\n    \"mime-types\",\n    \"customisable-theme\",\n    \"docker\"\n  ],\n  \"author\": \"Adam Whitcroft\",\n  \"license\": \"GPL-3.0\",\n  \"bugs\": {\n    \"url\": \"https://github.com/oupala/apaxy/issues\"\n  },\n  \"homepage\": \"https://github.com/oupala/apaxy#readme\",\n  \"devDependencies\": {\n    \"conventional-changelog\": \"^3.1.8\"\n  }\n}\n"
  },
  {
    "path": "share/PLACE_YOUR_FILES_HERE.txt",
    "content": "You can place your file in the \"share\" directory (here!) so that they are accessible if you use docker-compose.\n\nIf you want to share files at the root level of your docker container, you'll have to edit the Dockerfile.\n"
  }
]