Commit Graph

37 Commits

Author SHA1 Message Date
Matt Mascarenhas 0f27c96b29 cinera_search.js: Prevent crashes caused by | 2018-01-28 21:56:40 +00:00
Matt Mascarenhas 3d7add5b66 cinera: Handle sorting state separately from UI
Also add user-select: none
2018-01-21 19:30:54 +00:00
Matt Mascarenhas d7d27f59b7 cinera: Sortable index 2018-01-21 18:59:09 +00:00
Matt Mascarenhas b8013133b9 cinera: Fix theatre and add GUI clickable for it 2018-01-17 20:15:00 +00:00
Matt Mascarenhas f270ee2afa cinera: Theatre Mode
This also changes the hardcoded, unintegrated output to wrap cineraMenus
and cineraPlayerContainer in a <div>, as newly reflected in the example
template_player.html
2018-01-15 21:52:24 +00:00
Matt Mascarenhas 5e7029d2b0 cinera: Tweak filter
Introduce nullTopic, visually represent the media in annotations and
default to "exclusive" mode
2018-01-15 00:03:11 +00:00
Matt Mascarenhas 78861a1c78 cinera.css: Better behaving search .css
Keeps the results looking more consistent between various display widths
2018-01-12 23:26:07 +00:00
Matt Mascarenhas 93fa77b055 cinera.c: Correct template buffers
The template buffers no longer contain indentation spaces at the start
or a \n at the end. This removes any weirdness from template composition

Also remove the cleanup code added in 0.5.22
2018-01-08 22:59:36 +00:00
Matt Mascarenhas 6b1156292c cinera.c: Fix index reinsertion bug 2018-01-08 20:04:22 +00:00
Matt Mascarenhas acbe38b01f cinera.c: Fix 0.5.20 more correctly
The actual bug was that MarkerIndex wasn't being incremented for
HMML_CATEGORY markers mid-annotation... (HMML_MEMBER and HMML_PROJECT
were fine.)
2018-01-06 00:00:05 +00:00
Matt Mascarenhas b55f20dcb1 cinera.c: Keep non-topics out of cinera_topics.css
You would find @members and ~projects ending up in cinera_topics.css if
they were preceded by a topic :category in their annotation
2018-01-05 23:47:00 +00:00
Matt Mascarenhas 7d88e3c17d cinera.c: Only build search if != Single Edition 2018-01-05 20:03:02 +00:00
Matt Mascarenhas c1d6c87746 cinera.c: Bespoke template in Single Edition
Also fail gracefully if supplied with an .hmml file containing an
incomplete [video] node, or a template containing tags whose buffers
cannot be populated
2018-01-04 20:55:51 +00:00
Matt Mascarenhas 8f37ce0b76 cinera.c: Video-specific medium and template
Remove environment variable CINERA_INTEGRATE because this is meaningless
now that the default template locations are blank

Flags
    -t Template Directory (was Player Template Location)
    -y Player Template Location

Bug Fixes
    Correctly skip annotation sets that couldn't be processed for
    various reasons
    Fix crash caused by <!-- __CINERA_INDEX__ --> tag in a player
    template, because its buffer was being freed
    Fix 2048 bytes leak per processed set of annotations
2018-01-03 22:16:20 +00:00
Matt Mascarenhas f1e39e0513 cinera.c: Namespace .text to .cineraText 2017-12-29 16:00:44 +00:00
Matt Mascarenhas f6b85b5958 cinera.c: Enforce superscription of <sup> elements 2017-12-24 17:16:08 +00:00
Matt Mascarenhas e4c1446256 cinera.c: Call MakeDir() in GenerateTopicColours() 2017-12-24 01:57:11 +00:00
Matt Mascarenhas 120290b398 cinera.c: Support a combination of modes
Specifically, with the addition of MODE_ONESHOT in v0.5.12 we must allow
for the possibility of being in both that mode and MODE_INTEGRATE
2017-12-18 15:10:02 +00:00
Matt Mascarenhas 4a954b6ac6 cinera.c: Add -q flag
This sets cinera to "oneshot mode" which makes a Project Edition instance
quit after syncing from annotation files in project input directory
2017-12-18 14:31:05 +00:00
Matt Mascarenhas 1bbdf5aea4 cinera: Fix bug in image URL prefix construction 2017-12-18 00:15:03 +00:00
Matt Mascarenhas 153d14a810 cinera.c: Update Credentials array 2017-12-17 20:44:00 +00:00
Matt Mascarenhas 0aa585a15d cinera: Allow custom output paths
Relative to the Base:
    -a sets the player location
    -n sets the index location

Tweak flags, and add -B to set Base URL (necessary if setting -a or -n)

New template tags:
    __CINERA_URL__
    __CINERA_VIDEO_ID__

Bump DB version: 2
    index_header now contains the Index and Player Locations
2017-12-12 23:24:10 +00:00
Matt Mascarenhas 7312de5691 cinera: SendOwl 2017-12-10 17:29:00 +00:00
Matt Mascarenhas f7b3e6ffe2 cinera.css: Help z-index increase 2017-12-10 17:15:37 +00:00
Matt Mascarenhas fda3ee819b cinera: More namespacing and style tweak 2017-12-10 17:05:46 +00:00
Matt Mascarenhas f07cc87629 cinera.c: Namespacing 2017-12-10 00:17:19 +00:00
Matt Mascarenhas 9ce24be33a cinera_player_post.js: Mouse nav in quotes menu 2017-12-08 01:04:59 +00:00
Matt Mascarenhas 6f751dd2b2 cinera.c: Add support for alternative URL prefixes
This is hardcoded for now, for ease of use, pending the config system

Also add Medium to the ProjectInfo array, to save users having to set
this with -m (which option remains available to them)

Reorganise the CSS, Images and JS files back to their location in the
same directory, since a default invocation of the program assumes they
are in the same directory as the Root Directory, to hopefully alleviate
some potential user frustration thanks to the requirement to set their
locations (with -c, -i and -j) before any usable output is produced
2017-12-07 21:07:36 +00:00
Matt Mascarenhas f454e01e28 Add -s flag, project info and CINERA_PROJECT tag
-s flag sets the style / theme
Also some general code clean-up and repo organisation
2017-12-07 01:15:13 +00:00
Matt Mascarenhas 24f02aec93 cinera.c: Add csnover credential 2017-12-03 18:25:20 +00:00
Matt Mascarenhas 75f65e561d cinera.c: Add powerc9000 credential 2017-12-03 18:14:19 +00:00
Matt Mascarenhas 0f38660b2e cinera.c: Add cbloom credential for Handmade Hero 2017-12-03 00:55:01 +00:00
Matt Mascarenhas 50e2880d1b cinera.c: Add credentials for Handmade Hero 2017-12-03 00:47:27 +00:00
Matt Mascarenhas 1636c5fa14 cinera: Add :multimedia and :hat
hmdshow_2016_03 uses :multimedia
Various riscy and hero annotations may use :hat
2017-11-28 23:02:00 +00:00
Matt Mascarenhas 1b241ddcfe cinera.c: Add credentials and -v flag
README.md: Add dependency on curl
2017-11-18 00:27:33 +00:00
Matt Mascarenhas 1bb5cb034b cinera: Add :admin medium 2017-11-15 21:54:36 +00:00
Matt Mascarenhas 4572817837 cinera.c: Search [#7]
Also put the stuff in a new directory called cinera, that contains only
the files needed to get going, with example template files.
2017-11-11 00:34:47 +00:00