* Replace `substr`/`substring` with `slice`. The second argument to `substring` is length, not end index as in `substr`/`slice`, so convert where necessary. * Replace `new Date().getTime()` with `Date.now()` * Documentation fixes * Replace `throw Error` with `throw new Error` Change-Id: I532500ea4c99d8ebec01efb21273c8df21626e59
20 lines
351 B
Text
20 lines
351 B
Text
// @vue/component
|
|
module.exports = {
|
|
data: function () {
|
|
return {
|
|
hello: 'world'
|
|
};
|
|
}
|
|
};;
|
|
module.exports.template = "<!-- Outer comment --> \
|
|
<div class=\"mw-vue-test\"> \
|
|
<!-- \
|
|
Inner comment \
|
|
with multiple lines \
|
|
and tabs \
|
|
--> \
|
|
<p>Hello\\n<\/p> \
|
|
<p>{{ hello }}<\/p> \
|
|
<pre> foo\\\n bar \
|
|
<\/pre> \
|
|
<\/div>";
|