Registry / web-framework / vue-simple-timeline

vue-simple-timeline

JSON →
library0.1.2jsnpmunverified

vue-simple-timeline is a lightweight component designed to render basic chronological timelines within Vue 2 applications. The current stable version is 0.1.2, which typically indicates an early stage of development and suggests the project is likely inactive or has a very slow release cadence. It functions as a Vue plugin, installed via `Vue.use()`, making the `<simple-timeline>` component globally available. This package focuses on providing a straightforward timeline display with customizable event points and content, differentiating itself by its simplicity rather than offering advanced interactivity or complex layout options. It is exclusively built for the Vue 2 ecosystem and is not compatible with Vue 3.

npm install vue-simple-timeline
INSTALL
IMPORT
SIG · VUE-SIMPLE-TIMELIN
V
vue-simple-timeline
web-frameworkjavascriptv0.1.2
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SimpleTimeline
✓ import SimpleTimeline from 'vue-simple-timeline';
✗ const SimpleTimeline = require('vue-simple-timeline');
This is the default export, representing the Vue plugin object that contains the `install` method. It should be passed to `Vue.use()` for global component registration.
simple-timeline
✓ <template><simple-timeline :items='yourData'></simple-timeline></template>
✗ import { simpleTimeline } from 'vue-simple-timeline';
This refers to the component tag (`<simple-timeline>`) that becomes available in Vue 2 templates after `Vue.use(SimpleTimeline)` is called. It is not a named module export, but the globally registered component.
Timeline
✓ // No direct module import for this component. It is exposed via the plugin.
✗ import { Timeline } from 'vue-simple-timeline';
While the internal Vue component source file might be named 'Timeline.vue', it is not directly exported from the `vue-simple-timeline` package for individual import or local registration outside of the plugin's `Vue.use()` method.

Demonstrates how to install the `vue-simple-timeline` plugin and integrate the `<simple-timeline>` component into a basic Vue 2 application with sample data.

import Vue from 'vue'; import SimpleTimeline from 'vue-simple-timeline'; // Install the plugin to make <simple-timeline> component globally available Vue.use(SimpleTimeline); new Vue({ el: '#app', template: ` <div id="app"> <h1>My Historical Events</h1> <simple-timeline :items='timelineEvents'></simple-timeline> <p>The timeline component is rendered above with sample data.</p> </div> `, data () { return { timelineEvents: [ { tag: '2018-01-12', content: 'Hello. You can use <b>FULL</b> HTML here, be sure to sanitize<br/>if you are using user input!', footer: 'Stuff you want to appear in the footer' }, { tag: '2018-01-13', color: '#dcdcdc', type: 'circle', content: 'World of Vue' }, { type: 'star', tag: '2018-01-14', content: 'Awesome journey!' } ] } } });
Debug
Known issues
breakingThis package is designed exclusively for Vue 2 applications. It is not compatible with Vue 3 due to fundamental API changes in the Vue framework, particularly how components and plugins are registered and used.
fix
For Vue 3 projects, consider using a Vue 3 native timeline component or a different package. If you must use this package, you will need to migrate your project back to Vue 2.
affects: >=0.1.2
gotchaThe package appears to be abandoned, with no significant updates in several years. This means there will be no further bug fixes, security patches, or feature enhancements. Using abandoned packages can introduce long-term maintenance risks.
fix
Assess the stability and security implications carefully before using in production. Consider forking the repository if you require custom features or maintenance, or seek actively maintained alternatives.
affects: >=0.1.2
gotchaThe package is at version 0.1.2, indicating it was in a very early stage of development and likely not considered production-ready by its maintainers. This could lead to unexpected behavior or missing features.
fix
Thoroughly test the component in your specific use case to ensure it meets quality and stability requirements. Be prepared to implement workarounds or custom fixes for any discovered issues.
affects: >=0.1.2
Errors
Common errors & fixes
TypeError: Cannot read properties of undefined (reading 'use')
The `Vue` object was not correctly imported or instantiated as a Vue 2 application instance before attempting to call `Vue.use()`.
fix
Ensure `import Vue from 'vue';` is present and that you are working within a Vue 2 application context.
[Vue warn]: Unknown custom element: <simple-timeline> - did you register the component correctly? For recursive components, make sure to provide the 'name' option.
The `simple-timeline` component was not globally registered via the plugin's `Vue.use()` method, or the plugin itself was not imported.
fix
Verify that `import SimpleTimeline from 'vue-simple-timeline';` and `Vue.use(SimpleTimeline);` are correctly implemented in your application's entry point.
Module not found: Error: Can't resolve 'vue-simple-timeline'
The package `vue-simple-timeline` has not been installed in your project, or there's a typo in the import path.
fix
Install the package using npm (`npm install vue-simple-timeline`) or yarn (`yarn add vue-simple-timeline`). Double-check the import statement for typos.
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies
vuerequiredRuntime dependency for Vue 2 applications to function correctly. This package is built specifically for Vue 2.
Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
vue-simple-timeline — npm install vue-simple-timeline · libregistry