Skip to content

Commit e5fb426

Browse files
author
suriyakumar2402
committed
Updated Vue samples
1 parent 811fd02 commit e5fb426

File tree

2,373 files changed

+51
-774566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,373 files changed

+51
-774566
lines changed

README.md

Lines changed: 10 additions & 484 deletions
Large diffs are not rendered by default.

build/cdn.js

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

build/google-analytics

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

build/samples.js

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

gulpfile.js

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ const elasticlunr = require('elasticlunr');
1010
var shelljs = global.shelljs = global.shelljs || require('shelljs');
1111
var name = JSON.parse(fs.readFileSync('./package.json')).name.replace(`@syncfusion/`,'');
1212

13-
require('./build/samples');
14-
1513
process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE = '1';
1614

1715
var platforms = {
@@ -180,13 +178,13 @@ gulp.task('copy-source', function (done) {
180178
ignore: ['/src/common/**/', '/src/common']
181179
});
182180
for (var i = 0; i < controls.length; i++) {
183-
shelljs.cp('-rf', controls[i], controls[i].replace('src', 'public/source'));
181+
shelljs.cp('-rf', controls[i], controls[i].replace('src', 'public/src'));
184182
}
185183
done();
186184
});
187185

188186
gulp.task('build', function(done) {
189-
shelljs.exec('gulp combine-samplelist && gulp generate-routes && gulp styles-ship && gulp copy-source && gulp src-ship', done)
187+
shelljs.exec('gulp remove-labels && gulp combine-samplelist && gulp generate-routes && gulp styles-ship && gulp copy-source && gulp src-ship', done)
190188
});
191189

192190
gulp.task('src-ship', function (done) {
@@ -204,14 +202,41 @@ gulp.task('styles-ship', function (done) {
204202
done();
205203
});
206204

207-
gulp.task('serve', gulp.series('build', function(done) {
208-
const connect = require('gulp-connect');
209-
connect.server({
210-
root: __dirname + '/dist',
211-
port: 3000,
212-
ignore: ['node_modules']
213-
});
205+
function processFile(filePath, replacementRules) {
206+
if (fs.existsSync(filePath)) {
207+
let content = fs.readFileSync(filePath, 'utf8');
208+
for (const [search, replace] of replacementRules) {
209+
if (content.includes(search)) {
210+
content = content.replace(search, replace);
211+
}
212+
}
213+
fs.writeFileSync(filePath, content);
214+
}
215+
}
216+
217+
// Remove stackBlitz and newWindow labels from the application
218+
gulp.task('remove-labels', function(done) {
219+
const indexHtmlPath = './public/index.html';
220+
const appVuePath = './src/App.vue';
221+
222+
const indexHtmlReplacementRules = [
223+
["<!-- Google Tag Manager -->", "<style>.hide-labels { display: none; }</style>\n\t\t<!-- Google Tag Manager -->"]
224+
];
225+
226+
const appVueReplacementRules = [
227+
["sb-custom-item sb-open-new-wrapper", "sb-custom-item sb-open-new-wrapper hide-labels"],
228+
["sb-custom-item sb-plnr-section", "sb-custom-item sb-plnr-section hide-labels"],
229+
["+ hsplitter + openNewTemplate", "+ openNewTemplate"]
230+
];
231+
232+
processFile(indexHtmlPath, indexHtmlReplacementRules);
233+
processFile(appVuePath, appVueReplacementRules);
234+
214235
done();
236+
});
237+
238+
gulp.task('serve', gulp.series('build', function(done) {
239+
shelljs.exec('node --max_old_space_size=8192 node_modules/@vue/cli-service/bin/vue-cli-service.js serve', done);
215240
}));
216241

217242

newWindowSamples/ThreeDimensionChart/back-to-back-column/index.html

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

0 commit comments

Comments
 (0)