Skip to content

Commit

Permalink
Feat/model backed ui (microsoft#1145)
Browse files Browse the repository at this point in the history
This is an initial PR for a new model-driven UI where extensions can provide definitions of the components & how they're laid out using Containers.
microsoft#1140, microsoft#1141, microsoft#1142, microsoft#1143 and microsoft#1144 are all tracking additional work needed to improve the initial implementation and fix some issues with the implementation.

Features:
- Supports defining a FlexContainer that maps to a flexbox-based layout.
- Supports creating a card component, which is a key-value pair based control that will lay out simple information to a user. Eventually this will have an optional set of actions associated with it.
- Has a sample project which shows how to use the API and was used for verification
  • Loading branch information
kevcunnane authored Apr 13, 2018
1 parent e022f4a commit b2c70e9
Show file tree
Hide file tree
Showing 63 changed files with 13,238 additions and 84 deletions.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
"skipFiles": [
"**/winjs*.js"
],
"webRoot": "${workspaceFolder}"
"webRoot": "${workspaceFolder}",
"timeout": 15000
},
{
"type": "node",
Expand Down
3 changes: 3 additions & 0 deletions samples/sqlservices/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
*.vsix
typings/sqlops.proposed.d.ts
57 changes: 57 additions & 0 deletions samples/sqlservices/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// A launch configuration that launches the extension inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

// To debug the extension:
// 1. please install the "SQL Operations Studio Debug" extension into VSCode
// 2. Ensure sqlops is added to your path:
// - open SQL Operations Studio
// - run the command "Install 'sqlops' command in PATH"
{
"version": "0.2.0",
"configurations": [

{
"name": "Debug in SqlOps install",
"type": "sqlopsExtensionHost",
"request": "launch",
"runtimeExecutable": "sqlops",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
]
},
{
"type": "node",
"request": "attach",
"name": "Attach to Ops Studio",
"protocol": "inspector",
"port": 5870,
"restart": true,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out/**/*.js"
],
"preLaunchTask": "",
"timeout": 25000
},
{
"name": "Debug in enlistment",
"type": "sqlopsExtensionHost",
"request": "launch",
"windows": {
"runtimeExecutable": "${workspaceFolder}/../../scripts/sql.bat"
},
"osx": {
"runtimeExecutable": "${workspaceFolder}/../../scripts/sql.sh"
},
"linux": {
"runtimeExecutable": "${workspaceFolder}/../../scripts/sql.sh"
},
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"timeout": 20000
}
]
}
14 changes: 14 additions & 0 deletions samples/sqlservices/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "gulp",
"task": "build",
"problemMatcher": [
"$gulp-tsc"
]
}
]
}
4 changes: 4 additions & 0 deletions samples/sqlservices/.vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode/**
.vscode-test/**
.gitignore
vsc-extension-quickstart.md
1 change: 1 addition & 0 deletions samples/sqlservices/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a sample extension that will show some basic model-backed UI scenarios. The long-term goal is to use SQL Service querying (e.g. see if Agent and other services are running) and visualize in interesting ways. Additional suggestions for improving this sample are welcome.
14 changes: 14 additions & 0 deletions samples/sqlservices/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

"use strict";

// NOTE: These are es6 gulpfiles

// Basic build tasks
require('./tasks/buildtasks');

// VSIX generation tasks
require('./tasks/packagetasks');
Loading

0 comments on commit b2c70e9

Please sign in to comment.