
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
This gem packages the TimelineJS for easy use with the Rails asset pipleine.
Add to the assets group in your Gemfile:
gem 'timelineJS-rails', '~> 1.1.1'
Install the gem:
bundle install
Add the Javascript to application.js
:
//=require timelineJS/embed
Add the CSS to application.css
/*
*= require timelineJS/timeline
*/
The Localization language default is en
English,
if you want to change it, just add the Javascript to application.js
:
//=require timelineJS/locale/xxx # you should change the xxx with one of the available languages below
af
Afrikaansar
Arabic (beta)bg
Bulgarianca
Catalancz
Czechda
Danishde
German / Deutschel
Greeken
Englishen-24hr
English using 24hr timees
Spanisheu
Basque/ Euskarafi
Finnishfo
Faroesefr
Frenchgl
Galicianhu
Hungarianhy
Armenianid
Indonesianis
Icelandicit
Italianiw
Hebrew (beta)ja
Japaneseka
Georgianko
Koreanlv
Latviannl
Dutchno
Norwegianpl
Polishpt-br
Brazilian Portuguesept
Portugueseru
Russiansk
Slovaksl
Sloveniansr-cy
Serbian (Cyrillic)sr
Serbian (Latin)sv
Swedishta
Tamiltl
Tagalogtr
Turkishzh-cn
Chinesezh-tw
TaiwaneseIf you want to set the font theme, just add the CSS to application.css
:
/*
*= require timelineJS/themes/font/xxx #you should change the xxx with one of the available font themes below
*/
Arvo-PTSans
Merriweather-NewsCycle
PoiretOne-Molengo
PTSerif-PTSans
DroidSerif-DroidSans
Lekton-Molengo
NixieOne-Ledger
AbrilFatface-Average
PlayfairDisplay-Muli
Rancho-Gudea
Bevan-PotanoSans
BreeSerif-OpenSans
SansitaOne-Kameron
Pacifico-Arimo
$(document).ready(function() {
createStoryJS({
type: 'timeline',
width: '400',
height: '500',
source: '/events.json', //get the events.json format from https://github.com/VeriteCo/TimelineJS#file-formats
embed_id: 'time_line'
});
});
<%= timeline_config(
embed_id: "timeline_id",
source: '/events.json',
height: '600',
lang: 'zh-cn',
font: 'Bevan-PotanoSans'
)
%>
FAQs
Unknown package
We found that timelineJS_rails demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.