You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(templates): enhance context variable usage in templates
- Update template files to use `${context.variable}` syntax consistently.
- Add new context variable `${context.frameworkContext}` for workspace context.
- Improve DevIn tool call examples and structure in both English and Chinese templates.
I have created [routes.py](http://routes.py) to define URL endpoints for the "/upload" and "/query" endpoints. In addition, I have added "/" as an endpoint for main.html.
58
61
59
62
# Step 2. Create main.js
60
-
I have created a dedicated main.js file to store all of the
61
-
interactive front-end code. It defines the UI elements for the display window
62
-
and buttons, and creates event listeners for those buttons.
63
+
I have created a dedicated main.js file to store all of the interactive front-end code. It defines the UI elements for the display window and buttons, and creates event listeners for those buttons.
63
64
64
65
# Step 3. Update index.html
65
-
I have moved all the javascript code into main.js, and have imported
66
-
main.js in index.html. Separating the javascript from the HTML improves code
67
-
organization and promotes code
66
+
I have moved all the javascript code into main.js, and have imported main.js in index.html. Separating the javascript from the HTML improves code organization and promotes code
68
67
readability, maintainability, and reusability.
69
68
70
69
# Summary of Changes
71
-
I have made our photo app interactive by creating a routes.py and
72
-
main.js. Users can now use our app to Upload and Search for photos
73
-
using a natural language query. In addition, I have made some
74
-
modifications to the codebase to improve code organization and readability.
75
-
Run the app and try uploading and searching for photos. If you
76
-
encounter any errors or want to add new features, please let me know!
77
-
```
78
-
</assistant>
70
+
I have made our photo app interactive by creating a [routes.py](http://routes.py) and main.js. Users can now use our app to Upload and Search for photos
71
+
using a natural language query. In addition, I have made some modifications to the codebase to improve code organization and readability.
0 commit comments