Skip to content

ContentsPlanet 2022.08.31

Latest
Compare
Choose a tag to compare
@ContentsViewer ContentsViewer released this 06 Aug 13:11
· 10 commits to master since this release
6bdc882

Summary

  • Enhanced search features.
  • Support redirecting of content URL.
  • Major changes in the syntax of content header.
  • Major changes in plugin architecture.
  • Removed file-manager page.
    • Alternatively added admin page.
    • Moved the log view feature into log-viewer page.
    • Moved the file management feature into directory-viewer.
  • Changed URL formats.
    • Changed URL style from UpperCamelCase to kebab-case.
    • Changed the prefix of tag map URL from /TagMap to /:tagmap.
  • Deprecated Splitter. Inherit features to the new module SplitView.

Features

ContentsPlanet

  • Added new plugin architecture in which the users can add html head, js, css scripts to each frontend page.
  • Support php 8.0 or higher.

Frontend

  • Enhanced search features.
    • Suggest similar topics with last topic in a query.
    • Suggest next topics to narrow down suggested contents.
    • Show the search time.

Frontend/contents-viewer

  • Support redirecting of content URL.

Frontend/directory-viewer

  • Integrate file management feature.

Frontend/admin

  • Added admin page.

Frontend/log-viewer

  • Added log viewer page.

Module/ContentDatabase

  • Caching in memory the content that has been loaded once for each request.
  • Added the new syntax of content header.
    • The users can describe additional information.

Module/PathUtils

  • Added path operation module.

Module/PluginLoader

  • Added module that loads additional scrips of each frontend page and common html head scripts.

Service/contents-search-service

  • Added response data.
    • Similar topics with last topic in a query.
    • Next topics to narrow down suggested contents.
    • Search time.

Client/SplitView

  • Completely Element-Based Split View Controller.
  • Inherit features from the legacy module Splitter.

Changes

ContentsPlanet

  • Changed URL style from UpperCamelCase to kebab-case.
  • Removed redirecting to old URLs.
  • Renamed the path variable embedded in redirect URLs to other systems from {CONTENT_PATH} to {TARGET_NAME}.
  • Changed normalized expression for content paths.
    • Removed the prefix ./.
  • Changed URL format except for content resources (e.g., tagmap page, scripts).
    • Changed to URLs starting with : (e.g., Master/:tagmap~, Master/:scripts/~).
  • Changed some codes to follow coding style PSR-12.
    • We are planning to change other codes gradually in the future.
  • Improved security issues related to session ID cookies.
    • Add Secure attribute if https.
    • Add HttpOnly attribute to prevent access to cookie values via JavaScript.

Frontend

  • Add view tab in a page.
  • Changed a sort order of tag list and directory list from dictionary order to natural order.

Frontend/file-manager

  • Moving the features to log-viewer and directory-viewer, removed this page.

Frontend/viewer

  • Removed the page variable rootDirectory.

Module/ContentDatabase

  • Moved the content loading feature from class Content to class ContentDatabase.
  • Moved the database metadata management feature from class ContentDatabase to class ContentDatabaseMetadata.
  • Moved the content crawling feature from class ContentDatabase to class ContentCrawler.

Module/CacheManager

  • Support operations by method chain.
  • Changed the probability of gc as constant by each request.

Module/ScriptLoader

  • Renamed the previous module PluginLoader that extract the scripts from a content to ScriptLoader.

Client/Common

  • Added the common css.
  • Removed the common head file CommonHead.html. This corresponding feature is moved into the new plugin architecture.
  • Removed the common head file EndpointCommonHead.html for endpoint contents. This corresponding feature is moved into the new plugin architecture.

Client/Splitter

  • The features is inherited to SplitView.
  • Deprecated from this release.

Client/ace

  • Using npm for package management.
  • Update from v1.4.12 to v1.5.3.

Client/ContentsViewer

  • Removed the deprecated properties webkit-transition, webkit-transform from css.

Bug Fixes

Frontend/directory-viewer

  • Fixed no preview of png, bmp images.

Frontend/tag-viewer

  • Fixed invalid access to undefined variables.

Frontend/directory-viewer

  • Fixed a wrong highlighting of selected items in navigations.

Frontend/history-viewer

  • Fixed wrong links to content, note page when the current page is note.

Module/CacheManager

  • Fixed redundant loops while gc.

Module/OutlineText

  • Fixed parsing issue that inline elements containing inline code in HeadingElement and ListElement were not parsed.

Client/ContentsViewer

  • Fixed unexpected animations on page loaded.