Skip to content

Commit 689fe7b

Browse files
Rename the component source from Autonumeric to VueAutonumeric to prevent confusion with the AutoNumeric library
Update the examples source accordingly Signed-off-by: Alexandre Bonneau <[email protected]>
1 parent 29d9568 commit 689fe7b

File tree

6 files changed

+39
-19
lines changed

6 files changed

+39
-19
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Changelog for vue-autoNumeric
2+
3+
### 1.0.1
4+
+ Rename the component source from `Autonumeric` to `VueAutonumeric` to prevent confusion with the `AutoNumeric` library
5+
+ Update the examples source accordingly
6+
+ Update the readme with badges
7+
+ Update the readme with more detailed installation instructions
8+
+ Fix the examples in the readme and update the Codepen link
9+
10+
### 1.0.0
11+
+ Release the version `v1.0.0` of the vue-autoNumeric component

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ Huge Thanks :)
144144

145145
> PS:<br>
146146
I would love to know how you're using vue-autonumeric.<br>
147-
<br>
148-
Contact me!
147+
Contact me! :)
149148

150149

151150
[downloads-image]: http://img.shields.io/npm/dm/vue-autonumeric.svg

examples-src/App.vue

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,48 +18,48 @@
1818
<div class="pt5 nb5" id="basic-vue-autonumeric">
1919
<a href="#basic-vue-autonumeric" :class="headerClasses">
2020
<h2 class="ma0 pb2 f2 fw4 lh-1">Autonumeric component usage examples</h2>
21-
<p class="ma0 lh-copy f6">Vue-Autonumeric as the flexibility and power of its <a href="https://github.com/autoNumeric/autoNumeric">AutoNumeric parent library</a>. It can be configured as you like.</p>
21+
<p class="ma0 lh-copy f6">Vue-Autonumeric as the flexibility and power of its <a href="https://github.com/autoNumeric/autoNumeric" class="repoLink">AutoNumeric parent library</a>. It can be configured as you like.</p>
2222
</a>
2323
<div :class="boxClasses" :style="boxStyle">
2424
<div :class="labelClasses">Default vue-autonumeric</div>
25-
<autonumeric :options="''" v-model="autoNumericModel"></autonumeric>
25+
<vue-autonumeric :options="''" v-model="autoNumericModel"></vue-autonumeric>
2626
</div>
2727

2828
<div :class="boxClasses" :style="boxStyle">
2929
<div :class="labelClasses">With the <code>'euro'</code> option</div>
30-
<autonumeric :options="'euro'" v-model="autoNumericModel"></autonumeric>
30+
<vue-autonumeric :options="'euro'" v-model="autoNumericModel"></vue-autonumeric>
3131
</div>
3232

3333
<div :class="boxClasses" :style="boxStyle">
3434
<div :class="labelClasses">With the <code>'dollar'</code> option</div>
35-
<autonumeric :options="'dollar'" v-model="autoNumericModel"></autonumeric>
35+
<vue-autonumeric :options="'dollar'" v-model="autoNumericModel"></vue-autonumeric>
3636
</div>
3737

3838
<div :class="boxClasses" :style="boxStyle">
3939
<div :class="labelClasses">With the <code>'integer'</code> option</div>
40-
<autonumeric :options="'integer'" v-model="autoNumericModel"></autonumeric>
40+
<vue-autonumeric :options="'integer'" v-model="autoNumericModel"></vue-autonumeric>
4141
</div>
4242

4343
<div :class="boxClasses" :style="boxStyle">
4444
<div :class="labelClasses">With the <code>'integerPos'</code> option</div>
45-
<autonumeric :options="'integerPos'" v-model="autoNumericModel"></autonumeric>
45+
<vue-autonumeric :options="'integerPos'" v-model="autoNumericModel"></vue-autonumeric>
4646
</div>
4747

4848
<div :class="boxClasses" :style="boxStyle">
4949
<div :class="labelClasses">With the <code>'French'</code> predefined language and a placeholder</div>
50-
<autonumeric
50+
<vue-autonumeric
5151
:options="'French'"
5252
:placeholder="'Enter € here'"
5353
v-model="autoNumericModel"
54-
></autonumeric>
54+
></vue-autonumeric>
5555
</div>
5656

5757
<div :class="boxClasses" :style="boxStyle">
5858
<div :class="labelClasses">With the <code>'NorthAmerican'</code> predefined language</div>
59-
<autonumeric
59+
<vue-autonumeric
6060
:options="'NorthAmerican'"
6161
v-model="autoNumericModel"
62-
></autonumeric>
62+
></vue-autonumeric>
6363
</div>
6464

6565
<div :class="boxClasses" :style="boxStyle">
@@ -68,14 +68,14 @@
6868
decimalCharacter : ',',
6969
digitGroupSeparator : '.'
7070
}</code></div>
71-
<autonumeric
71+
<vue-autonumeric
7272
:options="{
7373
currencySymbol : 'Ω',
7474
decimalCharacter : ',',
7575
digitGroupSeparator : '.'
7676
}"
7777
v-model="autoNumericModel"
78-
></autonumeric>
78+
></vue-autonumeric>
7979
</div>
8080
</div>
8181
</div>
@@ -84,13 +84,13 @@
8484
</template>
8585

8686
<script type="text/babel">
87-
import Autonumeric from '../src/components/Autonumeric.vue';
87+
import VueAutonumeric from '../src/components/VueAutonumeric.vue';
8888
8989
export default {
9090
name : 'app',
9191
9292
components: {
93-
Autonumeric,
93+
VueAutonumeric,
9494
},
9595
9696
data() {
@@ -185,4 +185,14 @@
185185
border-radius : 3px;
186186
background-color : rgba(27, 31, 35, .05);
187187
}
188+
189+
.repoLink {
190+
text-decoration: none;
191+
color : #0094ff;
192+
193+
&:hover {
194+
text-decoration: underline;
195+
color : #0068B7;
196+
}
197+
}
188198
</style>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-autonumeric",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "An AutoNumeric wrapper for Vue.js",
55
"author": "Alexandre Bonneau <[email protected]>",
66
"license": "MIT",

src/components/Autonumeric.vue renamed to src/components/VueAutonumeric.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ OTHER DEALINGS IN THE SOFTWARE.
8181
*/
8282
export default {
8383
//TODO If an html value attribute is set in the source, then the 'linked' component sharing the same v-model are not updated with the value nor formatted on load (it takes precedence over the changes made by other inputs, and always keep `value` to the initial value)
84-
name: 'Autonumeric',
84+
name: 'VueAutonumeric',
8585
8686
props: {
8787
value: {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import VueAutonumeric from './components/Autonumeric.vue';
1+
import VueAutonumeric from './components/VueAutonumeric.vue';
22

33
// Expose component to global scope
44
/* eslint no-undef : 0 */

0 commit comments

Comments
 (0)