Giter VIP home page Giter VIP logo

honk_custom's Introduction

honk_custom

download here

Custom html templates and patches for the honk federated ActivityPub server. These are mainly related to the UX, but patching of the Go files might happen if I feel the need.

How to use

If you are already using Honk, backup your blob.db, honk.db and local.css. For example, if you want prepare the source with the rss patch:

make rsstitle

This will download the source tarball if not already done, untar it and patch the source with the rsstitle.patch. The patches are useable outside the Makefile. You just have to make sure to put them in the root of the cloned honk repo or untarred source.

The make rsstitle install will :

  • download the tarballed source if not already done
  • apply the rsstitle patch
  • compile honk
  • copy manuals to the relevant sections in /usr/share/man
  • copy html template to /usr/share/honk
  • create the honk user and group if not existing
  • create a systemd service if SYSTEMD=1 is defined in the Makefile
  • initialize the honk database if not existing at /usr/share/honk/honk.db

Patches

i18n.patch : Translation of the honk user interface

  • Adds an option to switch language, cookie-based (defaults to eng)
  • Can also switch it in account settings

The patches i18n.patch works in the latest honk release, 0.9.6, and latest hg changeset of honk, f74b9ce19463.

The translated strings are contained in the i18n.go and i18n_views/honkpage.js files. Contact me if you need help to add translations or notify me for problems, suggestions or improvements.

To apply:

make i18n

rsstitle.patch : More descriptive RSS title and description

Before the patch, the title and description of an user RSS Feed is like this:

  • title : yourhandle honk
  • description: yourhandle honk rss

After the patch:

I find it clearer.

To apply:

make rsstitle

altnavbar.patch (and the i18n version): honking faster with less clicks

You need to shitpost fast ? Look no further, this will add a floating navigation bar at the page's top with link to:

  • /newhonk
  • /front
  • /home
  • /xzone
  • /@me
  • /u/yourhandle (so your can see your own honks)
  • /account

The altnavbar_i18n.patch is the same, but the labels are i18n'd.

To apply:

make altnavbar # or i18naltnavbar

Screenshots

A video of the i18n module and the navbar patch here

honk_custom's People

Contributors

eerielili avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.