mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-10 02:55:09 +08:00
@@ -274,6 +274,32 @@
|
||||
});
|
||||
};
|
||||
|
||||
$scope.setPreset = function(preset) {
|
||||
$scope.data.php = data.php;
|
||||
$scope.data.wordpress = data.wordpress;
|
||||
$scope.data.index = data.index;
|
||||
$scope.data.fallback_html = data.fallback_html;
|
||||
|
||||
switch(preset) {
|
||||
case 'frontend':
|
||||
$scope.data.php = 'off';
|
||||
$scope.data.index = 'index.html';
|
||||
$scope.data.fallback_html = true;
|
||||
break;
|
||||
case 'spa':
|
||||
$scope.data.index = 'index.html';
|
||||
$scope.data.fallback_html = true;
|
||||
break;
|
||||
case 'wordpress':
|
||||
$scope.data.wordpress = true;
|
||||
break;
|
||||
}
|
||||
|
||||
gtag('event', preset, {
|
||||
event_category: 'preset',
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
///////////////////////////
|
||||
|
Reference in New Issue
Block a user