Skip to content

Commit d2068e6

Browse files
authored
Merge pull request #38 from vigneshsivaji/master
Need to resolve the issue occurs when run the Vue public samples
2 parents 6e2c18f + 0d4f028 commit d2068e6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

gulpfile.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ function generateSearchIndex(sampleArray) {
4040
fs.writeFileSync('./src/common/search-index.json', JSON.stringify(instance.toJSON()));
4141
}
4242

43-
function getSamples(data, component) {
43+
function getSamples(data, component, category) {
4444
var dataList = Object.keys(data);
4545
for (var i = 0; i < dataList.length; i++) {
4646
var currentData = data[dataList[i]];
47-
if (component === currentData.name) {
47+
if (component === currentData.name && category === currentData.category) {
4848
return currentData;
4949
}
5050
}
@@ -138,8 +138,9 @@ gulp.task('combine-samplelist', function() {
138138
var orderKeys = Object.keys(sampleOrder);
139139
for (var i = 0; i < orderKeys.length; i++) {
140140
var components = sampleOrder[orderKeys[i]];
141+
let category = orderKeys[i];
141142
for (var j = 0; j < components.length; j++) {
142-
var currentData = getSamples(data, components[j]);
143+
var currentData = getSamples(data, components[j], category);
143144
currentData['order'] = i;
144145
result.push(currentData);
145146
}
@@ -156,7 +157,7 @@ gulp.task('combine-samplelist', function() {
156157
gulp.task('generate-routes', function(done) {
157158
var jsonFiles = glob.sync('./src/**/sample.json');
158159
var imports = '',
159-
routs = ["{path: '/', redirect: '/bootstrap5/grid/grid-overview'}"];
160+
routs = ["{path: '/', redirect: '/tailwind3/grid/grid-overview'}"];
160161
jsonFiles.forEach(file => {
161162
var curJson = require(__dirname + '/' + file);
162163
curJson.samples.forEach(curSample => {

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ const updatesourceTab = (): void => {
18011801
data: '',
18021802
content: sourceFiles[i].displayName
18031803
});
1804-
updateStackBlitz();
1804+
// updateStackBlitz();
18051805
}
18061806
}
18071807
Promise.all(sourcePromise).then((results: Object[]): void => {

0 commit comments

Comments
 (0)