Changed Acorn to Web Template Studio in extension + templates (#344)

This commit is contained in:
Sahil Tara 2019-04-08 12:10:31 -07:00 коммит произвёл GitHub
Родитель 38a30d6468
Коммит c4578363e3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
25 изменённых файлов: 28 добавлений и 28 удалений

Просмотреть файл

@ -5,7 +5,7 @@
Web Template Studio runs as a VSCode extension and hence you'll need to have _VScode_ installed.
Also, you'll need _Node_ and _npm_/_yarn_ to run the generated templates.
## Installing the latest Project Acorn Release
## Installing the latest Microsoft Web Template Studio Release
1. Get the latest release from Web Template Studio [Github releases](https://github.com/Microsoft/WebTemplateStudio/releases)
2. Scroll down to _Assets_ and download the `.vsix` file

Просмотреть файл

@ -29,7 +29,7 @@ Additional documentation can be found here: [Cosmos Docs](https://github.com/Mic
### Azure Functions
An Azure Function with a Node runtime stack and HTTP trigger has been deployed to Azure. Project Acorn
An Azure Function with a Node runtime stack and HTTP trigger has been deployed to Azure. Microsoft Web Template Studio
has also generated a folder containing the code deployed to Azure Functions. To edit and redeploy the Azure
Function it is recommended to install the [Azure Functions Extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions). Additional documentation can be found here: [Azure Function Docs](https://github.com/Microsoft/WebTemplateStudio/blob/dev/docs/services/azure-functions.md).
@ -82,4 +82,4 @@ development front-end and back-end communicate via a proxy defined in the packag
- Mongo/Mongoose - https://mongoosejs.com/docs/guide.html
- Cosmos DB - https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-mongoose
This project was created using [Project Acorn](https://github.com/Microsoft/WebTemplateStudio).
This project was created using [Microsoft Web Template Studio](https://github.com/Microsoft/WebTemplateStudio).

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "ProjectAcorn",
"name": "MicrosoftWebTemplateStudio",
"version": "0.1.0",
"private": true,
"dependencies": {

Просмотреть файл

@ -24,7 +24,7 @@ app.use((req, res, next) => {
next(createError(404));
});
// TODO Project Acorn: Add your own error handler here.
// TODO Web Template Studio: Add your own error handler here.
if (process.env.NODE_ENV === "production") {
// Do not send stack trace of error message when in production
app.use((err, req, res, next) => {

Просмотреть файл

@ -1,7 +1,7 @@
const mongoose = require("mongoose");
const CONSTANTS = require("../constants");
// TODO Project Acorn: The Cosmos Mongo Database is set up to hold a collection called ListItems which contains documents
// TODO Web Template Studio: The Cosmos Mongo Database is set up to hold a collection called ListItems which contains documents
// with the following schema. Define your own schema for the Cosmos MongoDB using mongoose (https://mongoosejs.com/docs/index.html).
const ListItem = mongoose.model(
CONSTANTS.COSMOS.COLLECTION,

Просмотреть файл

@ -18,9 +18,9 @@ const shortLoremIpsum = `Lorem id sint aliqua tempor tempor sit. Ad dolor dolor
const header = "Heading";
// This class holds sample data used by some generated pages to show how they can be used.
// TODO Project Acorn: Delete this file once your app is using real data.
// TODO Web Template Studio: Delete this file once your app is using real data.
// TODO Project Acorn: If you use a database replace this ID with the ID created by the database
// TODO Web Template Studio: If you use a database replace this ID with the ID created by the database
sampleData.listID = 3;
sampleData.listTextAssets = [

Просмотреть файл

@ -4,7 +4,7 @@
* Module dependencies.
*/
const debug = require("debug")("ProjectAcornExpress:server");
const debug = require("debug")("WebTemplateStudioExpress:server");
const http = require("http");
const app = require("./app");
const CONSTANTS = require("./constants");

Просмотреть файл

@ -31,7 +31,7 @@ module.exports = class SQLController {
// Post a new item to the ListItem container in Cosmos Core SQL List database
async create(req, res, next) {
// TODO Project Acorn: The Cosmos Core SQL Database is set up to hold a container called ListItems which contains documents
// TODO Web Template Studio: The Cosmos Core SQL Database is set up to hold a container called ListItems which contains documents
// with the following schema. Define your own schema to add documents to the container here.
var listItem = {
text: req.body.text

Просмотреть файл

@ -8,7 +8,7 @@ import List from "./components/List";
import Blank from "./components/Blank";
import MasterDetail from "./components/MasterDetail";
//TODO Project Acorn: Add routes for your new pages here.
// TODO Web Template Studio: Add routes for your new pages here.
class App extends Component {
render() {
return (

Просмотреть файл

@ -1,6 +1,6 @@
import React from "react";
//TODO Project Acorn: Add a new link in the NavBar for your page here.
//TODO Web Template Studio: Add a new link in the NavBar for your page here.
export default function NavBar() {
return (
<nav className="navbar navbar-expand-sm navbar-light border-bottom justify-content-between">

Просмотреть файл

@ -1,7 +1,7 @@
const mongoose = require("mongoose");
const CONSTANTS = require("../constants");
// TODO Project Acorn: The Cosmos Mongo Database is set up to hold a collection called ListItems which contains documents
// TODO Web Template Studio: The Cosmos Mongo Database is set up to hold a collection called ListItems which contains documents
// with the following schema. Define your own schema for the Cosmos MongoDB using mongoose (https://mongoosejs.com/docs/index.html).
const ListItem = mongoose.model(
CONSTANTS.COSMOS.COLLECTION,

Просмотреть файл

@ -24,7 +24,7 @@ app.use((req, res, next) => {
next(createError(404));
});
// TODO Project Acorn: Add your own error handler here.
// TODO Web Template Studio: Add your own error handler here.
if (process.env.NODE_ENV === "production") {
// Do not send stack trace of error message when in production
app.use((err, req, res, next) => {

Просмотреть файл

@ -4,7 +4,7 @@
* Module dependencies.
*/
const debug = require("debug")("ProjectAcornExpress:server");
const debug = require("debug")("WebTemplateStudioExpress:server");
const http = require("http");
const app = require("./app");
const CONSTANTS = require("./constants");

Просмотреть файл

@ -1,6 +1,6 @@
{
"short_name": "wts.ReactDefault",
"name": "wts.ReactDefault created with ProjectAcorn",
"name": "wts.ReactDefault created with Microsoft Web Template Studio",
"icons": [
{
"src": "favicon.ico",

Просмотреть файл

@ -4,7 +4,7 @@ import "./App.css";
import NavBar from "./components/NavBar";
import Footer from "./components/Footer";
//TODO Project Acorn: Add routes for your new pages here.
//TODO Web Template Studio: Add routes for your new pages here.
class App extends Component {
render() {
return (

Просмотреть файл

@ -1,6 +1,6 @@
import React from "react";
//TODO Project Acorn: Add a new link in the NavBar for your page here.
//TODO Web Template Studio: Add a new link in the NavBar for your page here.
export default function NavBar() {
return (
<nav className="navbar navbar-expand-sm navbar-light border-bottom justify-content-between">

Просмотреть файл

@ -1,6 +1,6 @@
const sampleData = {};
// This class holds sample data used by some generated pages to show how they can be used.
// TODO Project Acorn: Delete this file once your app is using real data.
// TODO Web Template Studio: Delete this file once your app is using real data.
module.exports = sampleData;

Просмотреть файл

@ -6,7 +6,7 @@ const sampleData = {};
const header = "Heading";
//}]}
// This class holds sample data used by some generated pages to show how they can be used.
// TODO Project Acorn: Delete this file once your app is using real data.
// TODO Web Template Studio: Delete this file once your app is using real data.
//{[{
sampleData.gridTextAssets = [
{

Просмотреть файл

@ -4,9 +4,9 @@ const shortLoremIpsum = `Lorem id sint aliqua tempor tempor sit. Ad dolor dolor
const sampleData = {};
// This class holds sample data used by some generated pages to show how they can be used.
// TODO Project Acorn: Delete this file once your app is using real data.
// TODO Web Template Studio: Delete this file once your app is using real data.
//{[{
// TODO Project Acorn: If you use a database replace this ID with the ID created by the database
// TODO Web Template Studio: If you use a database replace this ID with the ID created by the database
sampleData.listID = 3;
sampleData.listTextAssets = [

Просмотреть файл

@ -1,6 +1,6 @@
const sampleData = {};
// This class holds sample data used by some generated pages to show how they can be used.
// TODO Project Acorn: Delete this file once your app is using real data.
// TODO Web Template Studio: Delete this file once your app is using real data.
module.exports = sampleData;

Просмотреть файл

@ -14,7 +14,7 @@ const longLoremIpsum = `Lorem ipsum dolor sit amet, consectetur adipiscing elit,
Lorem donec massa sapien faucibus et molestie ac.`;
//}]}
// This class holds sample data used by some generated pages to show how they can be used.
// TODO Project Acorn: Delete this file once your app is using real data.
// TODO Web Template Studio: Delete this file once your app is using real data.
//{[{
sampleData.masterDetailTextAssets = [
{

Просмотреть файл

@ -7,5 +7,5 @@ import Footer from "./components/Footer";
//{[{
import wts.ItemName from "./components/wts.ItemName";
//}]}
//TODO Project Acorn: Add routes for your new pages here.
//TODO Web Template Studio: Add routes for your new pages here.
class App extends Component {

Просмотреть файл

@ -159,7 +159,7 @@ export const CONSTANTS = {
LOGGED_OUT: "LoggedOut"
},
REACT_PANEL: {
Project_Title: "Project Acorn"
Project_Title: "Microsoft Web Template Studio"
},
GENERATE_ENDPOINT: "/api/generate",
CONNECTION_STRING: function(