Commit graph

66 commits

Author SHA1 Message Date
301cf90778
feat: add hatnote styling and improve code readability
Introduced new styles for hatnote elements to enhance visual distinction with margin, padding, background color, border, and font adjustments. Also, improved readability of existing CSS by reformatting multi-line selectors for figures and file elements.

These updates aim to make the content presentation more engaging and the CSS code easier to maintain. Fixes #7.
2024-08-18 07:06:27 +02:00
797cfc7a45
style: update element sizing and interwiki link styles
Adjusted font size for h1 headers to small for better readability.
Clarified width and height rules for image elements within .tmulti class.
Added specific styling for interwiki links with .sister-logo and .sister-link
classes to enhance UI alignment and spacing.
2024-08-17 11:48:53 +02:00
6f5863b746
fix(routing): handle redirects for nested wiki routes
Updated the route to accept nested paths for wiki titles.
Added logic to handle redirects within wiki articles, checking
for redirection messages and appropriately redirecting if the
"redirect" query parameter is not set to "no".

This ensures smoother navigation between articles, even when
dealing with paths that include slashes, which helps enhance
user experience.

Fixes #3.
2024-08-17 11:42:09 +02:00
dbb3ab0e98
feat: enhance proxy URL handling and add static CSS
Extended proxy URL support to include maps.wikimedia.org, improving the range of URLs that can be proxied. Established a static folder for serving CSS files by modifying the application’s static folder path. Transferred inline CSS from the base HTML template into an external stylesheet to improve maintainability and separation of concerns.

Fixes #2, also some progress on #1.
2024-08-17 09:27:46 +02:00
11d1c610a8
chore: update dependencies management for development
Migrated development dependencies to requirements-dev.txt and removed old runtime dependencies from requirements.txt. This aligns dependency management with current development practices and configurations.
2024-08-17 08:26:25 +02:00
c028219245
chore: bump version to 0.1.2
Updated project version to 0.1.2 to incorporate recent changes and improvements. Ensures consistency across the project and prepares for the upcoming release.
2024-07-16 10:20:05 +02:00
0e37e0524b
fix(wiki-article): correct URL escaping issue
Switched to single quotes for the title replacement in the URL to ensure compatibility with older Python versions.
2024-07-16 10:18:44 +02:00
e8823de045
feat: add CI/CD workflow for publishing Python package
Introduced a GitHub Actions workflow to automate the CI/CD process for publishing Python packages to PyPI. The workflow triggers on push tags and provides tasks for checking out code, installing dependencies, and uploading the package to PyPI using twine. This automation aims to streamline the release process and ensure consistency in package deployment.
2024-07-16 10:08:07 +02:00
bb97ff0ad9
chore: bump version to 0.1.1 and fix license
Updated the project version from 0.1.0 to 0.1.1 to indicate minor changes. Switched the license field in pyproject.toml from GNU AGPLv3 to MIT License.
2024-07-16 10:00:48 +02:00
9d25954448
chore: update .gitignore to include /dist/ directory
Added the /dist/ directory to .gitignore to prevent distribution artifacts from being tracked in the repository. This helps in keeping the repository clean and reduces unnecessary clutter in version control.
2024-07-16 09:59:11 +02:00
ae73156fc9
refactor: restructure project for PyPI packaging
- Added `pyproject.toml` for project metadata and dependency management
- Moved application code to `src/wikimore` directory for better organization
- Updated `launch.json` configuration for Flask app
- Enhanced README with installation, development instructions, and badges
- Introduced `main` function in `app.py` for environment-based configuration

These changes streamline packaging and improve project maintainability.
2024-07-16 09:58:18 +02:00
31687723aa
feat: set English as default language in dropdown
Modified the language selection dropdown to default to English by marking the 'en' option as selected. Enhances user experience by pre-selecting the most commonly used language. This may help users who are primarily English speakers to have a faster and more intuitive interaction with the form.
2024-07-16 08:31:32 +02:00
b9b407a737
fix: replace underscores with spaces in article titles
Updated article titles to replace underscores with spaces when rendering the wiki article. Enhances readability and ensures a more user-friendly display format.
2024-07-16 08:26:34 +02:00
d4c60d98d9
feat: dynamic Wikimedia projects and logging enhancements
Implemented dynamic fetching of Wikimedia projects and languages from the Wikimedia API, replacing static definitions. Enhanced logging with a detailed and formatted log output for better debugging and monitoring. Updated templates to list projects and languages dynamically. Improved URL handling and proxying for robust performance. This change ensures up-to-date project information and enhances overall application transparency and maintainability.
2024-07-16 08:24:40 +02:00
fcb6a4aa96
fix(proxy): validate URL to prevent invalid inputs
Added a URL validation check in the proxy endpoint to ensure the URL starts with "https://upload.wikimedia.org/". This prevents potential misuse or errors caused by processing invalid URLs.

Ensures only acceptable and expected URLs are processed, improving security and stability.
2024-07-16 07:51:01 +02:00
c436885cbc
feat: initial setup of Wikimore Flask app with basic features
Added initial setup for "Wikimore", a simple frontend for Wikimedia projects using Flask. The app includes the following features:

- Multi-language and multi-project support
- Search functionality with results displayed
- Proxy support for Wikimedia images
- Basic structure and templates (home, article, search results)

Configured appropriate .gitignore and .vscode settings for development. Licensed under MIT License.
2024-07-11 12:25:19 +02:00