Skip to content

Commit cf407c6

Browse files
authored
Merge pull request #115 from grapoza/1.1.0
1.1.0
2 parents 6336c14 + 2e588f5 commit cf407c6

34 files changed

+553
-134
lines changed

.browserslistrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ yarn-error.log*
2222
*.sw*
2323

2424
# Documentation output
25-
/docs/output
25+
/docsrc/output
2626

2727
# Local scratchpad document
2828
scratchpad.md

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ after_deploy:
5353
{
5454
# Publish the docs to the gh-pages branch
5555
# github_auth_token defined in the appveyor project on the site. https://www.appveyor.com/docs/how-to/git-push/
56-
cd docs
56+
cd docsrc
5757
.\generateDocs.ps1
5858
cd ..\..
5959
git clone --depth=1 --branch=gh-pages https://$($env:github_auth_token):x-oauth-basic@github.com/grapoza/vue-tree.git "pagesbranch" 2>&1 | % { $_.ToString() }
6060
cd pagesbranch
61-
Copy-Item -Path "..\vue-tree\docs\output" -Destination ".\$env:package_version" -Recurse
61+
Copy-Item -Path "..\vue-tree\docsrc\output" -Destination ".\$env:package_version" -Recurse
6262
git add "$env:package_version"
6363
New-Item -Path . -Name "index.html" -ItemType "file" -Value "<html><head><title>Redirect</title></head><body><script>window.location.replace(`"https://grapoza.github.io/vue-tree/$env:package_version/`");</script></body></html>" -Force
6464
git add index.html

docs/demos.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/metadata.demo.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

docsrc/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# vue-tree Documentation Source
2+
3+
This directory contains the sources used to build the GitHub Pages for this project.
4+
5+
If you came here looking for the actual documentation, you can find it [here](https://grapoza.github.io/vue-tree/).
File renamed without changes.

docs/demo/addRemove.md renamed to docsrc/demo/addRemove.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ This page demonstrates adding and removing nodes. [See the data used](./addRemov
2525
childCounter: 0,
2626
model: arModel,
2727
modelDefaults: {
28-
addChildCallback: this.addChildCallback
28+
addChildCallback: this.addChildCallback,
29+
addChildTitle: 'Add a new child node',
30+
deleteTitle: 'Delete this node',
31+
expanderTitle: 'Expand this node'
2932
}
3033
};
3134
},
File renamed without changes.

docs/demo/basic.md renamed to docsrc/demo/basic.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This page demonstrates a basic treeview using checkboxes, with some nodes that a
1010

1111
```{=html5}
1212
<div id="app">
13-
<tree id="customtree" :initial-model="model" ref="tree"></tree>
13+
<tree id="customtree" :initial-model="model" :model-defaults="modelDefaults" ref="tree"></tree>
1414
<section id="checkedStuff">
1515
<button type="button" class="treeProcessTrigger" v-on:click="refreshCheckedList">What's been checked?</button>
1616
<ul id="checkedList">
@@ -29,6 +29,11 @@ This page demonstrates a basic treeview using checkboxes, with some nodes that a
2929
data() {
3030
return {
3131
model: basicData,
32+
modelDefaults: {
33+
addChildTitle: 'Add a new child node',
34+
deleteTitle: 'Delete this node',
35+
expanderTitle: 'Expand this node'
36+
},
3237
checkedNodes: []
3338
};
3439
},

0 commit comments

Comments
 (0)